@umbraco-cms/backoffice 14.0.0--preview004-9f49270d → 14.0.0--preview004-e20cec44
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/dist-cms/custom-elements.json +0 -12
- package/dist-cms/mocks/data/stylesheet.data.js +3 -2
- package/dist-cms/mocks/handlers/stylesheet.handlers.js +3 -3
- package/dist-cms/packages/core/data-type/tree/data-type-tree.repository.d.ts +2 -2
- package/dist-cms/packages/core/data-type/tree/data-type-tree.repository.js +2 -2
- package/dist-cms/packages/core/extension-registry/models/menu-item.model.d.ts +1 -0
- package/dist-cms/packages/core/modal/token/document-picker-modal.token.js +1 -1
- package/dist-cms/packages/core/section/section-main-views/section-main-views.element.js +3 -3
- package/dist-cms/packages/core/store/file-system-item.store.d.ts +20 -0
- package/dist-cms/packages/core/store/file-system-item.store.js +22 -0
- package/dist-cms/packages/core/store/index.d.ts +1 -0
- package/dist-cms/packages/core/store/index.js +1 -0
- package/dist-cms/packages/core/tree/file-system-tree.store.js +4 -1
- package/dist-cms/packages/core/tree/index.d.ts +1 -1
- package/dist-cms/packages/core/tree/index.js +1 -1
- package/dist-cms/packages/core/tree/tree-menu-item/tree-menu-item.element.js +7 -1
- package/dist-cms/packages/core/tree/{entity-tree.repository.d.ts → tree-repository-base.d.ts} +10 -10
- package/dist-cms/packages/core/tree/{entity-tree.repository.js → tree-repository-base.js} +17 -17
- package/dist-cms/packages/core/tree/tree-repository.interface.d.ts +4 -4
- package/dist-cms/packages/dictionary/dictionary/entities.d.ts +2 -0
- package/dist-cms/packages/dictionary/dictionary/entities.js +2 -0
- package/dist-cms/packages/dictionary/dictionary/entity-actions/create/create.action.d.ts +0 -1
- package/dist-cms/packages/dictionary/dictionary/entity-actions/create/create.action.js +2 -31
- package/dist-cms/packages/dictionary/dictionary/entity-actions/manifests.js +14 -15
- package/dist-cms/packages/dictionary/dictionary/index.d.ts +1 -0
- package/dist-cms/packages/dictionary/dictionary/index.js +1 -0
- package/dist-cms/packages/dictionary/dictionary/manifests.d.ts +1 -1
- package/dist-cms/packages/dictionary/dictionary/menu-item/manifests.d.ts +1 -2
- package/dist-cms/packages/dictionary/dictionary/menu-item/manifests.js +6 -2
- package/dist-cms/packages/dictionary/dictionary/repository/dictionary.repository.d.ts +3 -30
- package/dist-cms/packages/dictionary/dictionary/repository/dictionary.repository.js +2 -51
- package/dist-cms/packages/dictionary/dictionary/repository/index.d.ts +0 -2
- package/dist-cms/packages/dictionary/dictionary/repository/index.js +0 -2
- package/dist-cms/packages/dictionary/dictionary/repository/manifests.d.ts +4 -5
- package/dist-cms/packages/dictionary/dictionary/repository/manifests.js +5 -13
- package/dist-cms/packages/dictionary/dictionary/tree/dictionary-tree.repository.d.ts +16 -0
- package/dist-cms/packages/dictionary/dictionary/tree/dictionary-tree.repository.js +19 -0
- package/dist-cms/packages/dictionary/dictionary/tree/dictionary-tree.server.data-source.d.ts +38 -0
- package/dist-cms/packages/dictionary/dictionary/{repository/sources/dictionary.tree.server.data.js → tree/dictionary-tree.server.data-source.js} +7 -8
- package/dist-cms/packages/dictionary/dictionary/{repository/dictionary.tree.store.d.ts → tree/dictionary-tree.store.d.ts} +4 -4
- package/dist-cms/packages/dictionary/dictionary/{repository/dictionary.tree.store.js → tree/dictionary-tree.store.js} +4 -4
- package/dist-cms/packages/dictionary/dictionary/tree/index.d.ts +5 -0
- package/dist-cms/packages/dictionary/dictionary/tree/index.js +4 -0
- package/dist-cms/packages/dictionary/dictionary/tree/manifests.d.ts +5 -2
- package/dist-cms/packages/dictionary/dictionary/tree/manifests.js +24 -7
- package/dist-cms/packages/dictionary/dictionary/tree/types.d.ts +4 -0
- package/dist-cms/packages/dictionary/dictionary/tree/types.js +1 -0
- package/dist-cms/packages/dictionary/dictionary/workspace/dictionary-workspace.context.js +0 -2
- package/dist-cms/packages/dictionary/manifests.d.ts +1 -1
- package/dist-cms/packages/documents/document-types/tree/document-type-tree.repository.d.ts +2 -2
- package/dist-cms/packages/documents/document-types/tree/document-type-tree.repository.js +2 -2
- package/dist-cms/packages/documents/documents/menu-item/manifests.d.ts +1 -2
- package/dist-cms/packages/documents/documents/menu-item/manifests.js +3 -1
- package/dist-cms/packages/documents/documents/tree/manifests.d.ts +1 -1
- package/dist-cms/packages/documents/documents/tree/manifests.js +2 -2
- package/dist-cms/packages/media/manifests.d.ts +1 -1
- package/dist-cms/packages/media/media/manifests.d.ts +1 -1
- package/dist-cms/packages/media/media/menu-item/manifests.d.ts +1 -2
- package/dist-cms/packages/media/media/menu-item/manifests.js +3 -1
- package/dist-cms/packages/media/media/tree/manifests.js +2 -2
- package/dist-cms/packages/templating/stylesheets/entity-actions/create/create-rtf.action.js +4 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/create/create.action.js +4 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/manifests.js +24 -11
- package/dist-cms/packages/templating/stylesheets/entity-type.d.ts +4 -0
- package/dist-cms/packages/templating/stylesheets/entity-type.js +4 -0
- package/dist-cms/packages/templating/stylesheets/index.d.ts +1 -0
- package/dist-cms/packages/templating/stylesheets/index.js +1 -0
- package/dist-cms/packages/templating/stylesheets/manifests.d.ts +1 -1
- package/dist-cms/packages/templating/stylesheets/menu-item/manifests.js +2 -2
- package/dist-cms/packages/templating/stylesheets/repository/index.d.ts +2 -0
- package/dist-cms/packages/templating/stylesheets/repository/index.js +2 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/index.d.ts +3 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/index.js +3 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/manifests.d.ts +4 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/manifests.js +17 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/stylesheet-item.repository.d.ts +6 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/stylesheet-item.repository.js +8 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/stylesheet-item.server.data-source.d.ts +25 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/stylesheet-item.server.data-source.js +32 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/stylesheet-item.store.d.ts +19 -0
- package/dist-cms/packages/templating/stylesheets/repository/item/stylesheet-item.store.js +19 -0
- package/dist-cms/packages/templating/stylesheets/repository/manifests.d.ts +3 -2
- package/dist-cms/packages/templating/stylesheets/repository/manifests.js +4 -10
- package/dist-cms/packages/templating/stylesheets/repository/stylesheet.repository.d.ts +2 -29
- package/dist-cms/packages/templating/stylesheets/repository/stylesheet.repository.js +4 -71
- package/dist-cms/packages/templating/stylesheets/tree/index.d.ts +1 -0
- package/dist-cms/packages/templating/stylesheets/tree/index.js +1 -0
- package/dist-cms/packages/templating/stylesheets/tree/manifests.d.ts +5 -3
- package/dist-cms/packages/templating/stylesheets/tree/manifests.js +22 -6
- package/dist-cms/packages/templating/stylesheets/tree/stylesheet-tree.repository.d.ts +14 -0
- package/dist-cms/packages/templating/stylesheets/tree/stylesheet-tree.repository.js +18 -0
- package/dist-cms/packages/templating/stylesheets/{repository/sources/stylesheet.tree.server.data.d.ts → tree/stylesheet-tree.server.data-source.d.ts} +6 -6
- package/dist-cms/packages/templating/stylesheets/{repository/sources/stylesheet.tree.server.data.js → tree/stylesheet-tree.server.data-source.js} +2 -2
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-editor.element.js +6 -1
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.context.js +2 -2
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.element.js +1 -0
- package/dist-cms/packages/user/current-user/current-user-header-app.element.js +6 -2
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +3 -0
- package/dist-cms/vscode-html-custom-data.json +0 -12
- package/package.json +1 -1
- package/dist-cms/packages/dictionary/dictionary/menu-item/dictionary-menu-item.element.d.ts +0 -10
- package/dist-cms/packages/dictionary/dictionary/menu-item/dictionary-menu-item.element.js +0 -17
- package/dist-cms/packages/dictionary/dictionary/repository/sources/dictionary.tree.server.data.d.ts +0 -37
- package/dist-cms/packages/documents/documents/menu-item/document-menu-item.element.d.ts +0 -10
- package/dist-cms/packages/documents/documents/menu-item/document-menu-item.element.js +0 -17
- package/dist-cms/packages/media/media/menu-item/media-menu-item.element.d.ts +0 -10
- package/dist-cms/packages/media/media/menu-item/media-menu-item.element.js +0 -17
- package/dist-cms/packages/templating/stylesheets/config.d.ts +0 -10
- package/dist-cms/packages/templating/stylesheets/config.js +0 -10
- /package/dist-cms/packages/templating/stylesheets/{repository/stylesheet.tree.store.d.ts → tree/stylesheet-tree.store.d.ts} +0 -0
- /package/dist-cms/packages/templating/stylesheets/{repository/stylesheet.tree.store.js → tree/stylesheet-tree.store.js} +0 -0
|
@@ -1,12 +1,10 @@
|
|
|
1
|
+
import { UMB_DICTIONARY_TREE_STORE_CONTEXT } from '../tree/index.js';
|
|
1
2
|
import { UMB_DICTIONARY_STORE_CONTEXT_TOKEN } from './dictionary.store.js';
|
|
2
3
|
import { UmbDictionaryDetailServerDataSource } from './sources/dictionary.detail.server.data.js';
|
|
3
|
-
import { UMB_DICTIONARY_TREE_STORE_CONTEXT_TOKEN } from './dictionary.tree.store.js';
|
|
4
|
-
import { UmbDictionaryTreeServerDataSource } from './sources/dictionary.tree.server.data.js';
|
|
5
4
|
import { UmbBaseController } from '../../../../libs/controller-api/index.js';
|
|
6
5
|
import { UMB_NOTIFICATION_CONTEXT_TOKEN } from '../../../core/notification/index.js';
|
|
7
6
|
export class UmbDictionaryRepository extends UmbBaseController {
|
|
8
7
|
#init;
|
|
9
|
-
#treeSource;
|
|
10
8
|
#treeStore;
|
|
11
9
|
#detailSource;
|
|
12
10
|
#detailStore;
|
|
@@ -14,13 +12,12 @@ export class UmbDictionaryRepository extends UmbBaseController {
|
|
|
14
12
|
constructor(host) {
|
|
15
13
|
super(host);
|
|
16
14
|
// TODO: figure out how spin up get the correct data source
|
|
17
|
-
this.#treeSource = new UmbDictionaryTreeServerDataSource(this);
|
|
18
15
|
this.#detailSource = new UmbDictionaryDetailServerDataSource(this);
|
|
19
16
|
this.#init = Promise.all([
|
|
20
17
|
this.consumeContext(UMB_DICTIONARY_STORE_CONTEXT_TOKEN, (instance) => {
|
|
21
18
|
this.#detailStore = instance;
|
|
22
19
|
}),
|
|
23
|
-
this.consumeContext(
|
|
20
|
+
this.consumeContext(UMB_DICTIONARY_TREE_STORE_CONTEXT, (instance) => {
|
|
24
21
|
this.#treeStore = instance;
|
|
25
22
|
}),
|
|
26
23
|
this.consumeContext(UMB_NOTIFICATION_CONTEXT_TOKEN, (instance) => {
|
|
@@ -28,52 +25,6 @@ export class UmbDictionaryRepository extends UmbBaseController {
|
|
|
28
25
|
}),
|
|
29
26
|
]);
|
|
30
27
|
}
|
|
31
|
-
// TREE:
|
|
32
|
-
async requestTreeRoot() {
|
|
33
|
-
await this.#init;
|
|
34
|
-
const data = {
|
|
35
|
-
id: null,
|
|
36
|
-
type: 'dictionary-root',
|
|
37
|
-
name: 'Dictionary',
|
|
38
|
-
icon: 'icon-folder',
|
|
39
|
-
hasChildren: true,
|
|
40
|
-
};
|
|
41
|
-
return { data };
|
|
42
|
-
}
|
|
43
|
-
async requestRootTreeItems() {
|
|
44
|
-
await this.#init;
|
|
45
|
-
const { data, error } = await this.#treeSource.getRootItems();
|
|
46
|
-
if (data) {
|
|
47
|
-
this.#treeStore?.appendItems(data.items);
|
|
48
|
-
}
|
|
49
|
-
return { data, error, asObservable: () => this.#treeStore.rootItems };
|
|
50
|
-
}
|
|
51
|
-
async requestTreeItemsOf(parentId) {
|
|
52
|
-
if (parentId === undefined)
|
|
53
|
-
throw new Error('Parent id is missing');
|
|
54
|
-
await this.#init;
|
|
55
|
-
const { data, error } = await this.#treeSource.getChildrenOf(parentId);
|
|
56
|
-
if (data) {
|
|
57
|
-
this.#treeStore?.appendItems(data.items);
|
|
58
|
-
}
|
|
59
|
-
return { data, error, asObservable: () => this.#treeStore.childrenOf(parentId) };
|
|
60
|
-
}
|
|
61
|
-
async requestItemsLegacy(ids) {
|
|
62
|
-
await this.#init;
|
|
63
|
-
if (!ids) {
|
|
64
|
-
throw new Error('Ids are missing');
|
|
65
|
-
}
|
|
66
|
-
const { data, error } = await this.#treeSource.getItems(ids);
|
|
67
|
-
return { data, error, asObservable: () => this.#treeStore.items(ids) };
|
|
68
|
-
}
|
|
69
|
-
async rootTreeItems() {
|
|
70
|
-
await this.#init;
|
|
71
|
-
return this.#treeStore.rootItems;
|
|
72
|
-
}
|
|
73
|
-
async treeItemsOf(parentId) {
|
|
74
|
-
await this.#init;
|
|
75
|
-
return this.#treeStore.childrenOf(parentId);
|
|
76
|
-
}
|
|
77
28
|
async itemsLegacy(ids) {
|
|
78
29
|
await this.#init;
|
|
79
30
|
return this.#treeStore.items(ids);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ManifestStore,
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const manifests: (ManifestStore | ManifestTreeStore | ManifestRepository<import("../../../../libs/extension-api/types.js").UmbApi>)[];
|
|
1
|
+
import { ManifestStore, ManifestRepository } from '../../../core/extension-registry/index.js';
|
|
2
|
+
export declare const UMB_DICTIONARY_REPOSITORY_ALIAS = "Umb.Repository.Dictionary";
|
|
3
|
+
export declare const UMB_DICTIONARY_STORE_ALIAS = "Umb.Store.Dictionary";
|
|
4
|
+
export declare const manifests: (ManifestStore | ManifestRepository<import("../../../../libs/extension-api/types.js").UmbApi>)[];
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
import { UmbDictionaryRepository } from './dictionary.repository.js';
|
|
2
|
-
import { UmbDictionaryTreeStore } from './dictionary.tree.store.js';
|
|
3
2
|
import { UmbDictionaryStore } from './dictionary.store.js';
|
|
4
|
-
export const
|
|
3
|
+
export const UMB_DICTIONARY_REPOSITORY_ALIAS = 'Umb.Repository.Dictionary';
|
|
5
4
|
const repository = {
|
|
6
5
|
type: 'repository',
|
|
7
|
-
alias:
|
|
6
|
+
alias: UMB_DICTIONARY_REPOSITORY_ALIAS,
|
|
8
7
|
name: 'Dictionary Repository',
|
|
9
8
|
api: UmbDictionaryRepository,
|
|
10
9
|
};
|
|
11
|
-
export const
|
|
12
|
-
export const DICTIONARY_TREE_STORE_ALIAS = 'Umb.Store.DictionaryTree';
|
|
10
|
+
export const UMB_DICTIONARY_STORE_ALIAS = 'Umb.Store.Dictionary';
|
|
13
11
|
const store = {
|
|
14
12
|
type: 'store',
|
|
15
|
-
alias:
|
|
13
|
+
alias: UMB_DICTIONARY_STORE_ALIAS,
|
|
16
14
|
name: 'Dictionary Store',
|
|
17
15
|
api: UmbDictionaryStore,
|
|
18
16
|
};
|
|
19
|
-
const
|
|
20
|
-
type: 'treeStore',
|
|
21
|
-
alias: DICTIONARY_TREE_STORE_ALIAS,
|
|
22
|
-
name: 'Dictionary Tree Store',
|
|
23
|
-
api: UmbDictionaryTreeStore,
|
|
24
|
-
};
|
|
25
|
-
export const manifests = [repository, store, treeStore];
|
|
17
|
+
export const manifests = [repository, store];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UmbDictionaryTreeItemModel, UmbDictionaryTreeRootModel } from './types.js';
|
|
2
|
+
import { UmbTreeRepositoryBase } from '../../../core/tree/index.js';
|
|
3
|
+
import { type UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
4
|
+
import { UmbApi } from '../../../../libs/extension-api/index.js';
|
|
5
|
+
export declare class UmbDictionaryTreeRepository extends UmbTreeRepositoryBase<UmbDictionaryTreeItemModel, UmbDictionaryTreeRootModel> implements UmbApi {
|
|
6
|
+
constructor(host: UmbControllerHost);
|
|
7
|
+
requestTreeRoot(): Promise<{
|
|
8
|
+
data: {
|
|
9
|
+
id: null;
|
|
10
|
+
type: string;
|
|
11
|
+
name: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
hasChildren: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entities.js';
|
|
2
|
+
import { UmbDictionaryTreeServerDataSource } from './dictionary-tree.server.data-source.js';
|
|
3
|
+
import { UMB_DICTIONARY_TREE_STORE_CONTEXT } from './dictionary-tree.store.js';
|
|
4
|
+
import { UmbTreeRepositoryBase } from '../../../core/tree/index.js';
|
|
5
|
+
export class UmbDictionaryTreeRepository extends UmbTreeRepositoryBase {
|
|
6
|
+
constructor(host) {
|
|
7
|
+
super(host, UmbDictionaryTreeServerDataSource, UMB_DICTIONARY_TREE_STORE_CONTEXT);
|
|
8
|
+
}
|
|
9
|
+
async requestTreeRoot() {
|
|
10
|
+
const data = {
|
|
11
|
+
id: null,
|
|
12
|
+
type: UMB_DICTIONARY_ROOT_ENTITY_TYPE,
|
|
13
|
+
name: 'Dictionary',
|
|
14
|
+
icon: 'icon-folder',
|
|
15
|
+
hasChildren: true,
|
|
16
|
+
};
|
|
17
|
+
return { data };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { UmbTreeDataSource } from '../../../core/tree/index.js';
|
|
2
|
+
import { EntityTreeItemResponseModel } from '../../../../external/backend-api/index.js';
|
|
3
|
+
import type { UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* A data source for the Dictionary tree that fetches data from the server
|
|
6
|
+
* @export
|
|
7
|
+
* @class UmbDictionaryTreeServerDataSource
|
|
8
|
+
* @implements {UmbTreeDataSource}
|
|
9
|
+
*/
|
|
10
|
+
export declare class UmbDictionaryTreeServerDataSource implements UmbTreeDataSource<EntityTreeItemResponseModel> {
|
|
11
|
+
#private;
|
|
12
|
+
/**
|
|
13
|
+
* Creates an instance of UmbDictionaryTreeServerDataSource.
|
|
14
|
+
* @param {UmbControllerHost} host
|
|
15
|
+
* @memberof UmbDictionaryTreeServerDataSource
|
|
16
|
+
*/
|
|
17
|
+
constructor(host: UmbControllerHost);
|
|
18
|
+
/**
|
|
19
|
+
* Fetches the root items for the tree from the server
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @memberof UmbDictionaryTreeServerDataSource
|
|
22
|
+
*/
|
|
23
|
+
getRootItems(): Promise<import("../../../core/repository/index.js").DataSourceResponse<import("../../../../external/backend-api/index.js").PagedEntityTreeItemResponseModel>>;
|
|
24
|
+
/**
|
|
25
|
+
* Fetches the children of a given parent id from the server
|
|
26
|
+
* @param {(string)} parentId
|
|
27
|
+
* @return {*}
|
|
28
|
+
* @memberof UmbDictionaryTreeServerDataSource
|
|
29
|
+
*/
|
|
30
|
+
getChildrenOf(parentId: string | null): Promise<import("../../../core/repository/index.js").DataSourceResponse<import("../../../../external/backend-api/index.js").PagedEntityTreeItemResponseModel>>;
|
|
31
|
+
/**
|
|
32
|
+
* Fetches the items for the given ids from the server
|
|
33
|
+
* @param {Array<string>} ids
|
|
34
|
+
* @return {*}
|
|
35
|
+
* @memberof UmbDictionaryTreeServerDataSource
|
|
36
|
+
*/
|
|
37
|
+
getItems(ids: Array<string>): Promise<import("../../../core/repository/index.js").DataSourceResponse<import("../../../../external/backend-api/index.js").ItemResponseModelBaseModel[]>>;
|
|
38
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { DictionaryResource } from '
|
|
2
|
-
import { tryExecuteAndNotify } from '
|
|
1
|
+
import { DictionaryResource } from '../../../../external/backend-api/index.js';
|
|
2
|
+
import { tryExecuteAndNotify } from '../../../../shared/resources/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* A data source for the Dictionary tree that fetches data from the server
|
|
5
5
|
* @export
|
|
6
6
|
* @class UmbDictionaryTreeServerDataSource
|
|
7
|
-
* @implements {
|
|
7
|
+
* @implements {UmbTreeDataSource}
|
|
8
8
|
*/
|
|
9
9
|
export class UmbDictionaryTreeServerDataSource {
|
|
10
10
|
#host;
|
|
11
11
|
/**
|
|
12
|
-
* Creates an instance of
|
|
12
|
+
* Creates an instance of UmbDictionaryTreeServerDataSource.
|
|
13
13
|
* @param {UmbControllerHost} host
|
|
14
|
-
* @memberof
|
|
14
|
+
* @memberof UmbDictionaryTreeServerDataSource
|
|
15
15
|
*/
|
|
16
16
|
constructor(host) {
|
|
17
17
|
this.#host = host;
|
|
@@ -26,7 +26,7 @@ export class UmbDictionaryTreeServerDataSource {
|
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Fetches the children of a given parent id from the server
|
|
29
|
-
* @param {(string
|
|
29
|
+
* @param {(string)} parentId
|
|
30
30
|
* @return {*}
|
|
31
31
|
* @memberof UmbDictionaryTreeServerDataSource
|
|
32
32
|
*/
|
|
@@ -51,9 +51,8 @@ export class UmbDictionaryTreeServerDataSource {
|
|
|
51
51
|
* @memberof UmbDictionaryTreeServerDataSource
|
|
52
52
|
*/
|
|
53
53
|
async getItems(ids) {
|
|
54
|
-
if (!ids
|
|
54
|
+
if (!ids)
|
|
55
55
|
throw new Error('Ids are missing');
|
|
56
|
-
}
|
|
57
56
|
return tryExecuteAndNotify(this.#host, DictionaryResource.getDictionaryItem({
|
|
58
57
|
id: ids,
|
|
59
58
|
}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { UmbContextToken } from '../../../../libs/context-api/index.js';
|
|
2
|
-
import { UmbEntityTreeStore } from '../../../core/tree/index.js';
|
|
3
2
|
import { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
3
|
+
import { UmbEntityTreeStore } from '../../../core/tree/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @export
|
|
6
6
|
* @class UmbDictionaryTreeStore
|
|
7
|
-
* @extends {
|
|
8
|
-
* @description - Tree Data Store for Dictionary
|
|
7
|
+
* @extends {UmbStoreBase}
|
|
8
|
+
* @description - Tree Data Store for Dictionary Items
|
|
9
9
|
*/
|
|
10
10
|
export declare class UmbDictionaryTreeStore extends UmbEntityTreeStore {
|
|
11
11
|
/**
|
|
@@ -15,4 +15,4 @@ export declare class UmbDictionaryTreeStore extends UmbEntityTreeStore {
|
|
|
15
15
|
*/
|
|
16
16
|
constructor(host: UmbControllerHostElement);
|
|
17
17
|
}
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const UMB_DICTIONARY_TREE_STORE_CONTEXT: UmbContextToken<UmbDictionaryTreeStore, UmbDictionaryTreeStore>;
|
|
@@ -3,8 +3,8 @@ import { UmbEntityTreeStore } from '../../../core/tree/index.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* @export
|
|
5
5
|
* @class UmbDictionaryTreeStore
|
|
6
|
-
* @extends {
|
|
7
|
-
* @description - Tree Data Store for Dictionary
|
|
6
|
+
* @extends {UmbStoreBase}
|
|
7
|
+
* @description - Tree Data Store for Dictionary Items
|
|
8
8
|
*/
|
|
9
9
|
export class UmbDictionaryTreeStore extends UmbEntityTreeStore {
|
|
10
10
|
/**
|
|
@@ -13,7 +13,7 @@ export class UmbDictionaryTreeStore extends UmbEntityTreeStore {
|
|
|
13
13
|
* @memberof UmbDictionaryTreeStore
|
|
14
14
|
*/
|
|
15
15
|
constructor(host) {
|
|
16
|
-
super(host,
|
|
16
|
+
super(host, UMB_DICTIONARY_TREE_STORE_CONTEXT.toString());
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
export const
|
|
19
|
+
export const UMB_DICTIONARY_TREE_STORE_CONTEXT = new UmbContextToken('UmbDictionaryTreeStore');
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { UmbDictionaryTreeRepository } from './dictionary-tree.repository.js';
|
|
2
|
+
export { UMB_DICTIONARY_TREE_REPOSITORY_ALIAS, UMB_DICTIONARY_TREE_STORE_ALIAS, UMB_DICTIONARY_TREE_ALIAS, } from './manifests.js';
|
|
3
|
+
export { UMB_DICTIONARY_TREE_STORE_CONTEXT } from './dictionary-tree.store.js';
|
|
4
|
+
export { type UmbDictionaryTreeStore } from './dictionary-tree.store.js';
|
|
5
|
+
export * from './types.js';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { UmbDictionaryTreeRepository } from './dictionary-tree.repository.js';
|
|
2
|
+
export { UMB_DICTIONARY_TREE_REPOSITORY_ALIAS, UMB_DICTIONARY_TREE_STORE_ALIAS, UMB_DICTIONARY_TREE_ALIAS, } from './manifests.js';
|
|
3
|
+
export { UMB_DICTIONARY_TREE_STORE_CONTEXT } from './dictionary-tree.store.js';
|
|
4
|
+
export * from './types.js';
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import type { ManifestTree, ManifestTreeItem } from '../../../core/extension-registry/index.js';
|
|
2
|
-
export declare const
|
|
1
|
+
import type { ManifestRepository, ManifestTree, ManifestTreeItem, ManifestTreeStore } from '../../../core/extension-registry/index.js';
|
|
2
|
+
export declare const UMB_DICTIONARY_TREE_REPOSITORY_ALIAS = "Umb.Repository.Dictionary.Tree";
|
|
3
|
+
export declare const UMB_DICTIONARY_TREE_STORE_ALIAS = "Umb.Store.Dictionary.Tree";
|
|
4
|
+
export declare const UMB_DICTIONARY_TREE_ALIAS = "Umb.Tree.Dictionary";
|
|
5
|
+
export declare const manifests: (ManifestTree | ManifestTreeItem | ManifestTreeStore | ManifestRepository<import("../../../../libs/extension-api/types.js").UmbApi>)[];
|
|
@@ -1,19 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UMB_DICTIONARY_ENTITY_TYPE, UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../entities.js';
|
|
2
|
+
import { UmbDictionaryTreeRepository } from './dictionary-tree.repository.js';
|
|
3
|
+
import { UmbDictionaryTreeStore } from './dictionary-tree.store.js';
|
|
4
|
+
export const UMB_DICTIONARY_TREE_REPOSITORY_ALIAS = 'Umb.Repository.Dictionary.Tree';
|
|
5
|
+
export const UMB_DICTIONARY_TREE_STORE_ALIAS = 'Umb.Store.Dictionary.Tree';
|
|
6
|
+
export const UMB_DICTIONARY_TREE_ALIAS = 'Umb.Tree.Dictionary';
|
|
7
|
+
const treeRepository = {
|
|
8
|
+
type: 'repository',
|
|
9
|
+
alias: UMB_DICTIONARY_TREE_REPOSITORY_ALIAS,
|
|
10
|
+
name: 'Dictionary Tree Repository',
|
|
11
|
+
api: UmbDictionaryTreeRepository,
|
|
12
|
+
};
|
|
13
|
+
const treeStore = {
|
|
14
|
+
type: 'treeStore',
|
|
15
|
+
alias: UMB_DICTIONARY_TREE_STORE_ALIAS,
|
|
16
|
+
name: 'Dictionary Tree Store',
|
|
17
|
+
api: UmbDictionaryTreeStore,
|
|
18
|
+
};
|
|
2
19
|
const tree = {
|
|
3
20
|
type: 'tree',
|
|
4
|
-
alias:
|
|
21
|
+
alias: UMB_DICTIONARY_TREE_ALIAS,
|
|
5
22
|
name: 'Dictionary Tree',
|
|
6
23
|
meta: {
|
|
7
|
-
repositoryAlias:
|
|
24
|
+
repositoryAlias: UMB_DICTIONARY_TREE_REPOSITORY_ALIAS,
|
|
8
25
|
},
|
|
9
26
|
};
|
|
10
27
|
const treeItem = {
|
|
11
28
|
type: 'treeItem',
|
|
12
29
|
kind: 'entity',
|
|
13
|
-
alias: 'Umb.TreeItem.
|
|
14
|
-
name: 'Dictionary
|
|
30
|
+
alias: 'Umb.TreeItem.Dictionary',
|
|
31
|
+
name: 'Dictionary Tree Item',
|
|
15
32
|
meta: {
|
|
16
|
-
entityTypes: [
|
|
33
|
+
entityTypes: [UMB_DICTIONARY_ROOT_ENTITY_TYPE, UMB_DICTIONARY_ENTITY_TYPE],
|
|
17
34
|
},
|
|
18
35
|
};
|
|
19
|
-
export const manifests = [tree, treeItem];
|
|
36
|
+
export const manifests = [treeRepository, treeStore, tree, treeItem];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EntityTreeItemResponseModel } from '../../../../external/backend-api/index.js';
|
|
2
|
+
import type { UmbEntityTreeItemModel, UmbEntityTreeRootModel } from '../../../core/tree/index.js';
|
|
3
|
+
export type UmbDictionaryTreeItemModel = EntityTreeItemResponseModel & UmbEntityTreeItemModel;
|
|
4
|
+
export type UmbDictionaryTreeRootModel = EntityTreeItemResponseModel & UmbEntityTreeRootModel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -52,8 +52,6 @@ export class UmbDictionaryWorkspaceContext extends UmbWorkspaceContext {
|
|
|
52
52
|
if (!data)
|
|
53
53
|
return;
|
|
54
54
|
this.setIsNew(true);
|
|
55
|
-
// TODO: This is a hack to get around the fact that the data is not typed correctly.
|
|
56
|
-
// Create and response models are different. We need to look into this.
|
|
57
55
|
this.#data.next(data);
|
|
58
56
|
}
|
|
59
57
|
async save() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: (import("../core/index.js").ManifestSectionSidebarApp | import("../core/index.js").ManifestModal | import("../core/index.js").ManifestDashboard | import("../core/index.js").ManifestEntityAction | import("../core/index.js").ManifestMenu | import("../core/index.js").
|
|
1
|
+
export declare const manifests: (import("../core/index.js").ManifestSectionSidebarApp | import("../core/index.js").ManifestModal | import("../core/index.js").ManifestDashboard | import("../core/index.js").ManifestEntityAction | import("../core/index.js").ManifestMenu | import("../core/index.js").ManifestMenuItemTreeKind | import("../core/index.js").ManifestSection | import("../core/index.js").ManifestStore | import("../core/index.js").ManifestTree | import("../core/index.js").ManifestTreeItem | import("../core/index.js").ManifestTreeStore | import("../core/index.js").ManifestWorkspace | import("../core/index.js").ManifestWorkspaceAction | import("../core/index.js").ManifestWorkspaceEditorView | import("../core/index.js").ManifestRepository<import("../../libs/extension-api/types.js").UmbApi>)[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { UmbDocumentTypeTreeItemModel, UmbDocumentTypeTreeRootModel } from './types.js';
|
|
2
|
-
import {
|
|
2
|
+
import { UmbTreeRepositoryBase } from '../../../core/tree/index.js';
|
|
3
3
|
import { type UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
4
4
|
import { UmbApi } from '../../../../libs/extension-api/index.js';
|
|
5
|
-
export declare class UmbDocumentTypeTreeRepository extends
|
|
5
|
+
export declare class UmbDocumentTypeTreeRepository extends UmbTreeRepositoryBase<UmbDocumentTypeTreeItemModel, UmbDocumentTypeTreeRootModel> implements UmbApi {
|
|
6
6
|
constructor(host: UmbControllerHost);
|
|
7
7
|
requestTreeRoot(): Promise<{
|
|
8
8
|
data: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DOCUMENT_TYPE_ROOT_ENTITY_TYPE } from '../index.js';
|
|
2
2
|
import { UmbDocumentTypeTreeServerDataSource } from './document-type.tree.server.data-source.js';
|
|
3
3
|
import { UMB_DOCUMENT_TYPE_TREE_STORE_CONTEXT } from './document-type.tree.store.js';
|
|
4
|
-
import {
|
|
5
|
-
export class UmbDocumentTypeTreeRepository extends
|
|
4
|
+
import { UmbTreeRepositoryBase } from '../../../core/tree/index.js';
|
|
5
|
+
export class UmbDocumentTypeTreeRepository extends UmbTreeRepositoryBase {
|
|
6
6
|
constructor(host) {
|
|
7
7
|
super(host, UmbDocumentTypeTreeServerDataSource, UMB_DOCUMENT_TYPE_TREE_STORE_CONTEXT);
|
|
8
8
|
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const manifests: ManifestMenuItem[];
|
|
1
|
+
export declare const manifests: import("../../../core/extension-registry/index.js").ManifestMenuItemTreeKind[];
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
const menuItem = {
|
|
2
2
|
type: 'menuItem',
|
|
3
|
+
kind: 'tree',
|
|
3
4
|
alias: 'Umb.MenuItem.Documents',
|
|
4
5
|
name: 'Documents Menu Item',
|
|
5
6
|
weight: 200,
|
|
6
|
-
loader: () => import('./document-menu-item.element.js'),
|
|
7
7
|
meta: {
|
|
8
8
|
label: 'Documents',
|
|
9
9
|
icon: 'icon-folder',
|
|
10
10
|
menus: ['Umb.Menu.Content'],
|
|
11
|
+
treeAlias: 'Umb.Tree.Document',
|
|
12
|
+
hideTreeRoot: true,
|
|
11
13
|
},
|
|
12
14
|
};
|
|
13
15
|
export const manifests = [menuItem];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ManifestTree, ManifestTreeItem } from '../../../core/extension-registry/index.js';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const UMB_DOCUMENT_TREE_ALIAS = "Umb.Tree.Document";
|
|
3
3
|
export declare const manifests: (ManifestTree | ManifestTreeItem)[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DOCUMENT_REPOSITORY_ALIAS } from '../repository/manifests.js';
|
|
2
|
-
export const
|
|
2
|
+
export const UMB_DOCUMENT_TREE_ALIAS = 'Umb.Tree.Document';
|
|
3
3
|
const tree = {
|
|
4
4
|
type: 'tree',
|
|
5
|
-
alias:
|
|
5
|
+
alias: UMB_DOCUMENT_TREE_ALIAS,
|
|
6
6
|
name: 'Documents Tree',
|
|
7
7
|
meta: {
|
|
8
8
|
repositoryAlias: DOCUMENT_REPOSITORY_ALIAS,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './media/components/index.js';
|
|
2
|
-
export declare const manifests: (import("../core/index.js").ManifestSectionSidebarApp | import("../core/index.js").ManifestCollectionView | import("../core/index.js").ManifestDashboardCollection | import("../core/index.js").ManifestEntityAction | import("../core/index.js").ManifestEntityBulkAction | import("../core/index.js").ManifestItemStore | import("../core/index.js").ManifestMenu | import("../core/index.js").
|
|
2
|
+
export declare const manifests: (import("../core/index.js").ManifestSectionSidebarApp | import("../core/index.js").ManifestCollectionView | import("../core/index.js").ManifestDashboardCollection | import("../core/index.js").ManifestEntityAction | import("../core/index.js").ManifestEntityBulkAction | import("../core/index.js").ManifestItemStore | import("../core/index.js").ManifestMenu | import("../core/index.js").ManifestMenuItemTreeKind | import("../core/index.js").ManifestSection | import("../core/index.js").ManifestStore | import("../core/index.js").ManifestTree | import("../core/index.js").ManifestTreeItem | import("../core/index.js").ManifestTreeStore | import("../core/index.js").ManifestWorkspace | import("../core/index.js").ManifestWorkspaceAction | import("../core/index.js").ManifestWorkspaceEditorView | import("../core/index.js").ManifestWorkspaceViewCollection | import("../core/index.js").ManifestUserPermission | import("../core/index.js").ManifestRepository<import("../../libs/extension-api/types.js").UmbApi>)[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: (import("../../core/index.js").ManifestCollectionView | import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestEntityBulkAction | import("../../core/index.js").ManifestItemStore | import("../../core/index.js").
|
|
1
|
+
export declare const manifests: (import("../../core/index.js").ManifestCollectionView | import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestEntityBulkAction | import("../../core/index.js").ManifestItemStore | import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestStore | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction | import("../../core/index.js").ManifestWorkspaceEditorView | import("../../core/index.js").ManifestWorkspaceViewCollection | import("../../core/index.js").ManifestUserPermission | import("../../core/index.js").ManifestRepository<import("../../../libs/extension-api/types.js").UmbApi>)[];
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const manifests: ManifestMenuItem[];
|
|
1
|
+
export declare const manifests: import("../../../core/extension-registry/index.js").ManifestMenuItemTreeKind[];
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
const menuItem = {
|
|
2
2
|
type: 'menuItem',
|
|
3
|
+
kind: 'tree',
|
|
3
4
|
alias: 'Umb.MenuItem.Media',
|
|
4
5
|
name: 'Media Menu Item',
|
|
5
6
|
weight: 100,
|
|
6
|
-
loader: () => import('./media-menu-item.element.js'),
|
|
7
7
|
meta: {
|
|
8
8
|
label: 'Media',
|
|
9
9
|
icon: 'icon-folder',
|
|
10
10
|
menus: ['Umb.Menu.Media'],
|
|
11
|
+
treeAlias: 'Umb.Tree.Media',
|
|
12
|
+
hideTreeRoot: true,
|
|
11
13
|
},
|
|
12
14
|
};
|
|
13
15
|
export const manifests = [menuItem];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { MEDIA_REPOSITORY_ALIAS } from '../repository/manifests.js';
|
|
2
|
-
const
|
|
2
|
+
const UMB_MEDIA_TREE_ALIAS = 'Umb.Tree.Media';
|
|
3
3
|
const tree = {
|
|
4
4
|
type: 'tree',
|
|
5
|
-
alias:
|
|
5
|
+
alias: UMB_MEDIA_TREE_ALIAS,
|
|
6
6
|
name: 'Media Tree',
|
|
7
7
|
meta: {
|
|
8
8
|
repositoryAlias: MEDIA_REPOSITORY_ALIAS,
|
|
@@ -4,6 +4,10 @@ export class UmbCreateRTFStylesheetAction extends UmbEntityActionBase {
|
|
|
4
4
|
super(host, repositoryAlias, unique);
|
|
5
5
|
}
|
|
6
6
|
async execute() {
|
|
7
|
+
if (this.unique !== null) {
|
|
8
|
+
// Note: %2F is a slash (/)
|
|
9
|
+
this.unique = this.unique.replace(/\//g, '%2F');
|
|
10
|
+
}
|
|
7
11
|
history.pushState(null, '', `section/settings/workspace/stylesheet/create/${this.unique ?? 'null'}/view/rich-text-editor`);
|
|
8
12
|
}
|
|
9
13
|
}
|
|
@@ -4,6 +4,10 @@ export class UmbCreateStylesheetAction extends UmbEntityActionBase {
|
|
|
4
4
|
super(host, repositoryAlias, unique);
|
|
5
5
|
}
|
|
6
6
|
async execute() {
|
|
7
|
+
if (this.unique !== null) {
|
|
8
|
+
// Note: %2F is a slash (/)
|
|
9
|
+
this.unique = this.unique.replace(/\//g, '%2F');
|
|
10
|
+
}
|
|
7
11
|
history.pushState(null, '', `section/settings/workspace/stylesheet/create/${this.unique ?? 'null'}/view/code`);
|
|
8
12
|
}
|
|
9
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UMB_STYLESHEET_ENTITY_TYPE, UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE, UMB_STYLESHEET_FOLDER_ENTITY_TYPE, UMB_STYLESHEET_ROOT_ENTITY_TYPE, } from '../entity-type.js';
|
|
2
|
+
import { UMB_STYLESHEET_REPOSITORY_ALIAS } from '../repository/index.js';
|
|
2
3
|
import { UmbCreateRTFStylesheetAction } from './create/create-rtf.action.js';
|
|
3
4
|
import { UmbCreateStylesheetAction } from './create/create.action.js';
|
|
4
5
|
import { UmbCreateFolderEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, } from '../../../core/entity-action/index.js';
|
|
@@ -13,8 +14,8 @@ const stylesheetActions = [
|
|
|
13
14
|
meta: {
|
|
14
15
|
icon: 'icon-trash',
|
|
15
16
|
label: 'Delete',
|
|
16
|
-
repositoryAlias:
|
|
17
|
-
entityTypes: [
|
|
17
|
+
repositoryAlias: UMB_STYLESHEET_REPOSITORY_ALIAS,
|
|
18
|
+
entityTypes: [UMB_STYLESHEET_ENTITY_TYPE],
|
|
18
19
|
},
|
|
19
20
|
},
|
|
20
21
|
];
|
|
@@ -29,8 +30,12 @@ const stylesheetFolderActions = [
|
|
|
29
30
|
meta: {
|
|
30
31
|
icon: 'icon-script',
|
|
31
32
|
label: 'New stylesheet file',
|
|
32
|
-
repositoryAlias:
|
|
33
|
-
entityTypes: [
|
|
33
|
+
repositoryAlias: UMB_STYLESHEET_REPOSITORY_ALIAS,
|
|
34
|
+
entityTypes: [
|
|
35
|
+
UMB_STYLESHEET_FOLDER_ENTITY_TYPE,
|
|
36
|
+
UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE,
|
|
37
|
+
UMB_STYLESHEET_ROOT_ENTITY_TYPE,
|
|
38
|
+
],
|
|
34
39
|
},
|
|
35
40
|
},
|
|
36
41
|
{
|
|
@@ -41,8 +46,12 @@ const stylesheetFolderActions = [
|
|
|
41
46
|
meta: {
|
|
42
47
|
icon: 'icon-script',
|
|
43
48
|
label: 'New Rich Text Editor style sheet file',
|
|
44
|
-
repositoryAlias:
|
|
45
|
-
entityTypes: [
|
|
49
|
+
repositoryAlias: UMB_STYLESHEET_REPOSITORY_ALIAS,
|
|
50
|
+
entityTypes: [
|
|
51
|
+
UMB_STYLESHEET_FOLDER_ENTITY_TYPE,
|
|
52
|
+
UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE,
|
|
53
|
+
UMB_STYLESHEET_ROOT_ENTITY_TYPE,
|
|
54
|
+
],
|
|
46
55
|
},
|
|
47
56
|
},
|
|
48
57
|
{
|
|
@@ -53,8 +62,8 @@ const stylesheetFolderActions = [
|
|
|
53
62
|
meta: {
|
|
54
63
|
icon: 'icon-trash',
|
|
55
64
|
label: 'Remove folder',
|
|
56
|
-
repositoryAlias:
|
|
57
|
-
entityTypes: [
|
|
65
|
+
repositoryAlias: UMB_STYLESHEET_REPOSITORY_ALIAS,
|
|
66
|
+
entityTypes: [UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE],
|
|
58
67
|
},
|
|
59
68
|
},
|
|
60
69
|
{
|
|
@@ -65,8 +74,12 @@ const stylesheetFolderActions = [
|
|
|
65
74
|
meta: {
|
|
66
75
|
icon: 'icon-add',
|
|
67
76
|
label: 'Create folder',
|
|
68
|
-
repositoryAlias:
|
|
69
|
-
entityTypes: [
|
|
77
|
+
repositoryAlias: UMB_STYLESHEET_REPOSITORY_ALIAS,
|
|
78
|
+
entityTypes: [
|
|
79
|
+
UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE,
|
|
80
|
+
UMB_STYLESHEET_FOLDER_ENTITY_TYPE,
|
|
81
|
+
UMB_STYLESHEET_ROOT_ENTITY_TYPE,
|
|
82
|
+
],
|
|
70
83
|
},
|
|
71
84
|
},
|
|
72
85
|
];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const UMB_STYLESHEET_ENTITY_TYPE = "stylesheet";
|
|
2
|
+
export declare const UMB_STYLESHEET_ROOT_ENTITY_TYPE = "stylesheet-root";
|
|
3
|
+
export declare const UMB_STYLESHEET_FOLDER_ENTITY_TYPE = "stylesheet-folder";
|
|
4
|
+
export declare const UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE = "stylesheet-folder-empty";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const UMB_STYLESHEET_ENTITY_TYPE = 'stylesheet';
|
|
2
|
+
export const UMB_STYLESHEET_ROOT_ENTITY_TYPE = 'stylesheet-root';
|
|
3
|
+
export const UMB_STYLESHEET_FOLDER_ENTITY_TYPE = 'stylesheet-folder';
|
|
4
|
+
export const UMB_STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE = 'stylesheet-folder-empty';
|