Skip to content

Commit 434bac7

Browse files
Feature: Data Type Folder workspace (#17996)
* implement folder workspace view for data types * Update index.ts * export consts
1 parent 37343b2 commit 434bac7

File tree

28 files changed

+301
-21
lines changed

28 files changed

+301
-21
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
export { UmbDataTypeCollectionRepository } from './repository/index.js';
2+
export { UMB_DATA_TYPE_COLLECTION_ALIAS } from './constants.js';

src/Umbraco.Web.UI.Client/src/packages/data-type/collection/manifests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { UMB_DATA_TYPE_COLLECTION_ALIAS, UMB_DATA_TYPE_COLLECTION_REPOSITORY_ALIAS } from './constants.js';
1+
import { UMB_DATA_TYPE_COLLECTION_REPOSITORY_ALIAS } from './repository/constants.js';
2+
import { UMB_DATA_TYPE_COLLECTION_ALIAS } from './constants.js';
23
import { manifests as collectionRepositoryManifests } from './repository/manifests.js';
34

45
export const manifests: Array<UmbExtensionManifest> = [
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
export { UMB_DATA_TYPE_COLLECTION_REPOSITORY_ALIAS } from './constants.js';
12
export { UmbDataTypeCollectionRepository } from './data-type-collection.repository.js';

src/Umbraco.Web.UI.Client/src/packages/data-type/constants.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
export * from './collection/constants.js';
2-
export * from './modals/constants.js';
2+
export * from './data-type-root/constants.js';
33
export * from './entity-actions/constants.js';
4+
export * from './modals/constants.js';
5+
export * from './paths.js';
46
export * from './reference/constants.js';
57
export * from './repository/constants.js';
68
export * from './tree/constants.js';
79
export * from './workspace/constants.js';
8-
export * from './paths.js';
910
export {
1011
UMB_DATA_TYPE_ENTITY_TYPE,
1112
UMB_DATA_TYPE_ROOT_ENTITY_TYPE,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const UMB_DATA_TYPE_ROOT_WORKSPACE_ALIAS = 'Umb.Workspace.DataType.Root';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './constants.js';
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { UMB_DATA_TYPE_ROOT_ENTITY_TYPE } from '../entity.js';
2+
3+
export const manifests: Array<UmbExtensionManifest> = [
4+
{
5+
type: 'workspace',
6+
kind: 'default',
7+
alias: 'Umb.Workspace.DataType.Root',
8+
name: 'Data Type Root Workspace',
9+
meta: {
10+
entityType: UMB_DATA_TYPE_ROOT_ENTITY_TYPE,
11+
headline: '#treeHeaders_dataTypes',
12+
},
13+
},
14+
];

src/Umbraco.Web.UI.Client/src/packages/data-type/manifests.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { manifests as collectionManifests } from './collection/manifests.js';
2+
import { manifests as dataTypeRootManifest } from './data-type-root/manifests.js';
23
import { manifests as entityActions } from './entity-actions/manifests.js';
34
import { manifests as menuManifests } from './menu/manifests.js';
45
import { manifests as modalManifests } from './modals/manifests.js';
@@ -9,6 +10,7 @@ import { manifests as workspaceManifests } from './workspace/manifests.js';
910

1011
export const manifests: Array<UmbExtensionManifest> = [
1112
...collectionManifests,
13+
...dataTypeRootManifest,
1214
...entityActions,
1315
...menuManifests,
1416
...modalManifests,

src/Umbraco.Web.UI.Client/src/packages/data-type/paths.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ export const UMB_CREATE_DATA_TYPE_WORKSPACE_PATH_PATTERN = new UmbPathPattern<{
1818
parentEntityType: UmbEntityModel['entityType'];
1919
parentUnique: UmbEntityModel['unique'];
2020
}>('create/parent/:parentEntityType/:parentUnique', UMB_DATA_TYPE_WORKSPACE_PATH);
21+
22+
export const UMB_EDIT_DATA_TYPE_WORKSPACE_PATH_PATTERN = new UmbPathPattern<{ unique: string }>(
23+
'edit/:unique',
24+
UMB_DATA_TYPE_WORKSPACE_PATH,
25+
);

src/Umbraco.Web.UI.Client/src/packages/data-type/tree/constants.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
export { UMB_DATA_TYPE_TREE_STORE_CONTEXT } from './data-type-tree.store.context-token.js';
2+
export * from './folder/constants.js';
3+
export * from './tree-item-children/constants.js';
4+
15
export const UMB_DATA_TYPE_TREE_REPOSITORY_ALIAS = 'Umb.Repository.DataType.Tree';
26
export const UMB_DATA_TYPE_TREE_STORE_ALIAS = 'Umb.Store.DataType.Tree';
37
export const UMB_DATA_TYPE_TREE_ALIAS = 'Umb.Tree.DataType';
4-
export { UMB_DATA_TYPE_TREE_STORE_CONTEXT } from './data-type-tree.store.context-token.js';
5-
6-
export * from './folder/constants.js';

0 commit comments

Comments
 (0)