@umbraco-cms/backoffice 14.0.0-3ffd4766 → 14.0.0-40e04294
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 +33 -11
- package/dist-cms/external/backend-api/index.js +1 -1
- package/dist-cms/external/backend-api/src/index.d.ts +17 -1
- package/dist-cms/external/backend-api/src/models/CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel.d.ts +1 -0
- package/dist-cms/external/backend-api/src/models/CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel.d.ts +1 -0
- package/dist-cms/external/backend-api/src/models/CreateContentTypeRequestModelBaseCreateDocumentTypePropertyTypeRequestModelCreateDocumentTypePropertyTypeContainerRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/CreateContentTypeRequestModelBaseCreateMediaTypePropertyTypeRequestModelCreateMediaTypePropertyTypeContainerRequestModel.d.ts +20 -0
- package/dist-cms/external/backend-api/src/models/CreateMediaTypePropertyTypeContainerRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/CreateMediaTypePropertyTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/CreateMediaTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/DeleteUserGroupsRequestModel.d.ts +3 -0
- package/dist-cms/external/backend-api/src/models/DeleteUsersRequestModel.d.ts +3 -0
- package/dist-cms/external/backend-api/src/models/ItemSortingRequestModel.d.ts +4 -0
- package/dist-cms/external/backend-api/src/models/ProblemDetailsBuilderModel.d.ts +1 -0
- package/dist-cms/external/backend-api/src/models/RelationResponseModel.d.ts +2 -2
- package/dist-cms/external/backend-api/src/models/ResetPasswordRequestModel.d.ts +3 -0
- package/dist-cms/external/backend-api/src/models/ResetPasswordTokenRequestModel.d.ts +4 -0
- package/dist-cms/external/backend-api/src/models/SortingRequestModel.d.ts +5 -0
- package/dist-cms/external/backend-api/src/models/UpdateContentTypeRequestModelBaseUpdateMediaTypePropertyTypeRequestModelUpdateMediaTypePropertyTypeContainerRequestModel.d.ts +18 -0
- package/dist-cms/external/backend-api/src/models/{UpdateFolderReponseModel.d.ts → UpdateFolderResponseModel.d.ts} +1 -1
- package/dist-cms/external/backend-api/src/models/UpdateMediaTypePropertyTypeContainerRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/UpdateMediaTypePropertyTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/UpdateMediaTypeRequestModel.d.ts +2 -0
- package/dist-cms/external/backend-api/src/models/VerifyResetPasswordTokenRequestModel.d.ts +4 -0
- package/dist-cms/external/backend-api/src/services/DataTypeResource.d.ts +2 -2
- package/dist-cms/external/backend-api/src/services/DocumentResource.d.ts +21 -21
- package/dist-cms/external/backend-api/src/services/DocumentTypeResource.d.ts +35 -3
- package/dist-cms/external/backend-api/src/services/MediaResource.d.ts +13 -5
- package/dist-cms/external/backend-api/src/services/MediaTypeResource.d.ts +56 -0
- package/dist-cms/external/backend-api/src/services/RelationResource.d.ts +1 -9
- package/dist-cms/external/backend-api/src/services/SecurityResource.d.ts +24 -0
- package/dist-cms/external/backend-api/src/services/UserGroupResource.d.ts +8 -0
- package/dist-cms/external/backend-api/src/services/UserResource.d.ts +8 -0
- package/dist-cms/external/router-slot/config.d.ts +8 -0
- package/dist-cms/external/router-slot/index.d.ts +4 -3
- package/dist-cms/external/router-slot/index.js +1 -1
- package/dist-cms/external/router-slot/model.d.ts +123 -0
- package/dist-cms/external/router-slot/router-slot.d.ts +111 -0
- package/dist-cms/external/router-slot/util/anchor.d.ts +5 -0
- package/dist-cms/external/router-slot/util/events.d.ts +26 -0
- package/dist-cms/external/router-slot/util/history.d.ts +32 -0
- package/dist-cms/external/router-slot/util/index.d.ts +6 -0
- package/dist-cms/external/router-slot/util/router.d.ts +72 -0
- package/dist-cms/external/router-slot/util/shadow.d.ts +15 -0
- package/dist-cms/external/router-slot/util/url.d.ts +78 -0
- package/dist-cms/external/router-slot/util.d.ts +1 -0
- package/dist-cms/libs/observable-api/observer.js +2 -1
- package/dist-cms/mocks/browser-handlers.js +3 -1
- package/dist-cms/mocks/data/document.data.d.ts +6 -2
- package/dist-cms/mocks/data/document.data.js +54 -4
- package/dist-cms/mocks/data/entity.data.js +0 -2
- package/dist-cms/mocks/data/scripts.data.d.ts +21 -0
- package/dist-cms/mocks/data/scripts.data.js +205 -0
- package/dist-cms/mocks/handlers/{document.handlers.js → document/document.handlers.js} +28 -40
- package/dist-cms/mocks/handlers/document/index.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/index.js +5 -0
- package/dist-cms/mocks/handlers/document/item.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/item.handlers.js +13 -0
- package/dist-cms/mocks/handlers/document/recycle-bin.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/recycle-bin.handlers.js +16 -0
- package/dist-cms/mocks/handlers/document/slug.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/slug.js +1 -0
- package/dist-cms/mocks/handlers/document/tree.handlers.d.ts +1 -0
- package/dist-cms/mocks/handlers/document/tree.handlers.js +16 -0
- package/dist-cms/mocks/handlers/scripts.handlers.d.ts +2 -0
- package/dist-cms/mocks/handlers/scripts.handlers.js +83 -0
- package/dist-cms/packages/core/content-type/content-type-container-structure-helper.class.js +2 -2
- package/dist-cms/packages/core/content-type/content-type-property-structure-helper.class.js +1 -1
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.d.ts +15 -15
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +79 -103
- package/dist-cms/packages/core/entity-action/common/trash/trash.action.d.ts +1 -1
- package/dist-cms/packages/core/entity-action/common/trash/trash.action.js +1 -1
- package/dist-cms/packages/core/modal/token/create-document-modal.token.d.ts +8 -0
- package/dist-cms/packages/core/modal/token/create-document-modal.token.js +5 -0
- package/dist-cms/packages/core/modal/token/index.d.ts +1 -1
- package/dist-cms/packages/core/modal/token/index.js +1 -1
- package/dist-cms/packages/core/store/store-base.d.ts +18 -6
- package/dist-cms/packages/core/store/store-base.js +22 -6
- package/dist-cms/packages/documents/document-types/entity-actions/manifests.js +1 -1
- package/dist-cms/packages/documents/document-types/manifests.js +0 -2
- package/dist-cms/packages/documents/document-types/repository/document-type-item.store.d.ts +20 -0
- package/dist-cms/packages/documents/document-types/repository/document-type-item.store.js +23 -0
- package/dist-cms/packages/documents/document-types/repository/document-type.repository.d.ts +5 -21
- package/dist-cms/packages/documents/document-types/repository/document-type.repository.js +26 -20
- package/dist-cms/packages/documents/document-types/repository/manifests.d.ts +3 -2
- package/dist-cms/packages/documents/document-types/repository/manifests.js +9 -1
- package/dist-cms/packages/documents/document-types/repository/sources/document-type-item.server.data.d.ts +25 -0
- package/dist-cms/packages/documents/document-types/repository/sources/document-type-item.server.data.js +32 -0
- package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.d.ts +1 -1
- package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.js +1 -12
- package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.context.js +27 -27
- package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.js +8 -4
- package/dist-cms/packages/documents/documents/entity-actions/create/create-document-modal.element.d.ts +17 -0
- package/dist-cms/packages/documents/{document-types/modals/allowed-document-types/allowed-document-types-modal.element.js → documents/entity-actions/create/create-document-modal.element.js} +29 -38
- package/dist-cms/packages/documents/documents/entity-actions/create/create.action.d.ts +0 -2
- package/dist-cms/packages/documents/documents/entity-actions/create/create.action.js +7 -23
- package/dist-cms/packages/documents/documents/entity-actions/create/manifests.d.ts +2 -0
- package/dist-cms/packages/documents/documents/entity-actions/create/manifests.js +27 -0
- package/dist-cms/packages/documents/documents/entity-actions/manifests.d.ts +2 -2
- package/dist-cms/packages/documents/documents/entity-actions/manifests.js +15 -48
- package/dist-cms/packages/documents/documents/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/index.js +1 -0
- package/dist-cms/packages/documents/documents/manifests.d.ts +13 -1
- package/dist-cms/packages/documents/documents/manifests.js +2 -0
- package/dist-cms/packages/documents/documents/menu-item/manifests.js +1 -1
- package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.d.ts +14 -0
- package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.js +18 -0
- package/dist-cms/packages/documents/documents/recycle-bin/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/index.js +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/manifests.d.ts +13 -0
- package/dist-cms/packages/documents/documents/recycle-bin/manifests.js +5 -0
- package/dist-cms/packages/documents/documents/recycle-bin/menu-item/manifests.d.ts +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/menu-item/manifests.js +14 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.d.ts +28 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.js +56 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle.bin.tree.store.d.ts +18 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle.bin.tree.store.js +19 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/index.d.ts +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/index.js +1 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.d.ts +4 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.js +17 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.d.ts +29 -0
- package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.js +49 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.d.ts +2 -0
- package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.js +19 -0
- package/dist-cms/packages/documents/documents/repository/document-item.store.d.ts +20 -0
- package/dist-cms/packages/documents/documents/repository/document-item.store.js +23 -0
- package/dist-cms/packages/documents/documents/repository/document.repository.d.ts +10 -9
- package/dist-cms/packages/documents/documents/repository/document.repository.js +47 -25
- package/dist-cms/packages/documents/documents/repository/document.store.d.ts +0 -12
- package/dist-cms/packages/documents/documents/repository/document.store.js +0 -16
- package/dist-cms/packages/documents/documents/repository/sources/document-item.server.data.d.ts +24 -0
- package/dist-cms/packages/documents/documents/repository/sources/document-item.server.data.js +31 -0
- package/dist-cms/packages/documents/documents/repository/sources/document.server.data.d.ts +9 -21
- package/dist-cms/packages/documents/documents/repository/sources/document.server.data.js +33 -62
- package/dist-cms/packages/documents/documents/workspace/manifests.js +6 -4
- package/dist-cms/packages/documents/manifests.d.ts +13 -1
- package/dist-cms/packages/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.d.ts +3 -1
- package/dist-cms/packages/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.js +26 -40
- package/dist-cms/packages/settings/relation-types/workspace/views/relation/workspace-view-relation-type-relation.element.js +17 -17
- package/dist-cms/packages/templating/manifests.js +2 -0
- package/dist-cms/packages/templating/scripts/config.d.ts +20 -0
- package/dist-cms/packages/templating/scripts/config.js +22 -0
- package/dist-cms/packages/templating/scripts/entity-actions/create/create-empty.action.d.ts +8 -0
- package/dist-cms/packages/templating/scripts/entity-actions/create/create-empty.action.js +9 -0
- package/dist-cms/packages/templating/scripts/entity-actions/manifests.d.ts +2 -0
- package/dist-cms/packages/templating/scripts/entity-actions/manifests.js +56 -0
- package/dist-cms/packages/templating/scripts/index.d.ts +2 -0
- package/dist-cms/packages/templating/scripts/index.js +2 -0
- package/dist-cms/packages/templating/scripts/manifests.d.ts +1 -0
- package/dist-cms/packages/templating/scripts/manifests.js +12 -0
- package/dist-cms/packages/templating/scripts/menu-item/manifests.d.ts +1 -0
- package/dist-cms/packages/templating/scripts/menu-item/manifests.js +16 -0
- package/dist-cms/packages/templating/scripts/repository/index.d.ts +1 -0
- package/dist-cms/packages/templating/scripts/repository/index.js +1 -0
- package/dist-cms/packages/templating/scripts/repository/manifests.d.ts +2 -0
- package/dist-cms/packages/templating/scripts/repository/manifests.js +23 -0
- package/dist-cms/packages/templating/scripts/repository/scripts.repository.d.ts +71 -0
- package/dist-cms/packages/templating/scripts/repository/scripts.repository.js +154 -0
- package/dist-cms/packages/templating/scripts/repository/scripts.store.d.ts +31 -0
- package/dist-cms/packages/templating/scripts/repository/scripts.store.js +37 -0
- package/dist-cms/packages/templating/scripts/repository/scripts.tree.store.d.ts +19 -0
- package/dist-cms/packages/templating/scripts/repository/scripts.tree.store.js +21 -0
- package/dist-cms/packages/templating/scripts/repository/sources/index.d.ts +11 -0
- package/dist-cms/packages/templating/scripts/repository/sources/index.js +1 -0
- package/dist-cms/packages/templating/scripts/repository/sources/scripts.detail.server.data.d.ts +41 -0
- package/dist-cms/packages/templating/scripts/repository/sources/scripts.detail.server.data.js +57 -0
- package/dist-cms/packages/templating/scripts/repository/sources/scripts.folder.server.data.d.ts +17 -0
- package/dist-cms/packages/templating/scripts/repository/sources/scripts.folder.server.data.js +23 -0
- package/dist-cms/packages/templating/scripts/repository/sources/scripts.tree.server.data.d.ts +14 -0
- package/dist-cms/packages/templating/scripts/repository/sources/scripts.tree.server.data.js +31 -0
- package/dist-cms/packages/templating/scripts/tree/manifests.d.ts +2 -0
- package/dist-cms/packages/templating/scripts/tree/manifests.js +20 -0
- package/dist-cms/packages/templating/scripts/workspace/manifests.d.ts +2 -0
- package/dist-cms/packages/templating/scripts/workspace/manifests.js +32 -0
- package/dist-cms/packages/templating/scripts/workspace/scripts-workspace-edit.element.d.ts +24 -0
- package/dist-cms/packages/templating/scripts/workspace/scripts-workspace-edit.element.js +171 -0
- package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.context.d.ts +23 -0
- package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.context.js +87 -0
- package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.element.d.ts +14 -0
- package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.element.js +50 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts +1 -1
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.js +1 -1
- package/dist-cms/shared/repository/data-source/folder-data-source.interface.d.ts +2 -2
- package/dist-cms/shared/repository/folder-repository.interface.d.ts +2 -2
- package/dist-cms/shared/router/index.d.ts +1 -1
- package/dist-cms/shared/router/index.js +1 -1
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/vscode-html-custom-data.json +17 -7
- package/package.json +2 -3
- package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.d.ts +0 -9
- package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.js +0 -5
- package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.d.ts +0 -19
- package/dist-cms/packages/documents/document-types/modals/manifests.d.ts +0 -2
- package/dist-cms/packages/documents/document-types/modals/manifests.js +0 -9
- package/router-slot-2.3.0.tgz +0 -0
- /package/dist-cms/mocks/handlers/{document.handlers.d.ts → document/document.handlers.d.ts} +0 -0
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { UmbData } from './data.js';
|
|
2
|
+
import { createFileItemResponseModelBaseModel, createFileSystemTreeItem, createTextFileItem } from './utils.js';
|
|
3
|
+
export const data = [
|
|
4
|
+
{
|
|
5
|
+
path: 'some-folder',
|
|
6
|
+
isFolder: true,
|
|
7
|
+
name: 'some-folder',
|
|
8
|
+
type: 'script',
|
|
9
|
+
hasChildren: true,
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
path: 'another-folder',
|
|
13
|
+
isFolder: true,
|
|
14
|
+
name: 'another-folder',
|
|
15
|
+
type: 'script',
|
|
16
|
+
hasChildren: true,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
path: 'very important folder',
|
|
20
|
+
isFolder: true,
|
|
21
|
+
name: 'very important folder',
|
|
22
|
+
type: 'script',
|
|
23
|
+
hasChildren: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
path: 'some-folder/ugly script.js',
|
|
27
|
+
isFolder: false,
|
|
28
|
+
name: 'ugly script.js',
|
|
29
|
+
type: 'script',
|
|
30
|
+
hasChildren: false,
|
|
31
|
+
content: `function makeid(length) {
|
|
32
|
+
var result = '';
|
|
33
|
+
var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
|
|
34
|
+
var charactersLength = characters.length;
|
|
35
|
+
for ( var i = 0; i < length; i++ ) {
|
|
36
|
+
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
37
|
+
}
|
|
38
|
+
return result;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
console.log(makeid(5));`,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: 'some-folder/nice script.js',
|
|
45
|
+
isFolder: false,
|
|
46
|
+
name: 'nice script.js',
|
|
47
|
+
type: 'script',
|
|
48
|
+
hasChildren: false,
|
|
49
|
+
content: `var items = {
|
|
50
|
+
"item_1": "1",
|
|
51
|
+
"item_2": "2",
|
|
52
|
+
"item_3": "3"
|
|
53
|
+
}
|
|
54
|
+
for (var item in items) {
|
|
55
|
+
console.log(items[item]);
|
|
56
|
+
}`,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
path: 'another-folder/only bugs.js',
|
|
60
|
+
isFolder: false,
|
|
61
|
+
name: 'only bugs.js',
|
|
62
|
+
type: 'script',
|
|
63
|
+
hasChildren: false,
|
|
64
|
+
content: `var my_arr = [4, '', 0, 10, 7, '', false, 10];
|
|
65
|
+
|
|
66
|
+
my_arr = my_arr.filter(Boolean);
|
|
67
|
+
|
|
68
|
+
console.log(my_arr);`,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
path: 'very important folder/no bugs at all.js',
|
|
72
|
+
isFolder: false,
|
|
73
|
+
name: 'no bugs at all.js',
|
|
74
|
+
type: 'script',
|
|
75
|
+
hasChildren: false,
|
|
76
|
+
content: `const date_str = "07/20/2021";
|
|
77
|
+
const date = new Date(date_str);
|
|
78
|
+
const full_day_name = date.toLocaleDateString('default', { weekday: 'long' });
|
|
79
|
+
// -> to get full day name e.g. Tuesday
|
|
80
|
+
|
|
81
|
+
const short_day_name = date.toLocaleDateString('default', { weekday: 'short' });
|
|
82
|
+
console.log(short_day_name);
|
|
83
|
+
// -> TO get the short day name e.g. Tue`,
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
path: 'very important folder/nope.js',
|
|
87
|
+
isFolder: false,
|
|
88
|
+
name: 'nope.js',
|
|
89
|
+
type: 'script',
|
|
90
|
+
hasChildren: false,
|
|
91
|
+
content: `// Define an object
|
|
92
|
+
const employee = {
|
|
93
|
+
"name": "John Deo",
|
|
94
|
+
"department": "IT",
|
|
95
|
+
"project": "Inventory Manager"
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
// Remove a property
|
|
99
|
+
delete employee["project"];
|
|
100
|
+
|
|
101
|
+
console.log(employee);`,
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
class UmbScriptsData extends UmbData {
|
|
105
|
+
constructor() {
|
|
106
|
+
super(data);
|
|
107
|
+
}
|
|
108
|
+
getTreeRoot() {
|
|
109
|
+
const items = this.data.filter((item) => item.path?.includes('/') === false);
|
|
110
|
+
const treeItems = items.map((item) => createFileSystemTreeItem(item));
|
|
111
|
+
const total = items.length;
|
|
112
|
+
return { items: treeItems, total };
|
|
113
|
+
}
|
|
114
|
+
getTreeItemChildren(parentPath) {
|
|
115
|
+
const items = this.data.filter((item) => item.path?.startsWith(parentPath));
|
|
116
|
+
const treeItems = items.map((item) => createFileSystemTreeItem(item));
|
|
117
|
+
const total = items.length;
|
|
118
|
+
return { items: treeItems, total };
|
|
119
|
+
}
|
|
120
|
+
getTreeItem(paths) {
|
|
121
|
+
const items = this.data.filter((item) => paths.includes(item.path ?? ''));
|
|
122
|
+
return items.map((item) => createFileSystemTreeItem(item));
|
|
123
|
+
}
|
|
124
|
+
getItem(paths) {
|
|
125
|
+
const items = this.data.filter((item) => paths.includes(item.path ?? ''));
|
|
126
|
+
return items.map((item) => createFileItemResponseModelBaseModel(item));
|
|
127
|
+
}
|
|
128
|
+
getFolder(path) {
|
|
129
|
+
const items = data.filter((item) => item.isFolder && item.path === path);
|
|
130
|
+
return items;
|
|
131
|
+
}
|
|
132
|
+
postFolder(payload) {
|
|
133
|
+
const newFolder = {
|
|
134
|
+
path: `${payload.parentPath ?? ''}/${payload.name}`,
|
|
135
|
+
isFolder: true,
|
|
136
|
+
name: payload.name,
|
|
137
|
+
type: 'script',
|
|
138
|
+
hasChildren: false,
|
|
139
|
+
};
|
|
140
|
+
return this.insert(newFolder);
|
|
141
|
+
}
|
|
142
|
+
deleteFolder(path) {
|
|
143
|
+
return this.delete([path]);
|
|
144
|
+
}
|
|
145
|
+
getScript(path) {
|
|
146
|
+
return createTextFileItem(this.data.find((item) => item.path === path));
|
|
147
|
+
}
|
|
148
|
+
insertScript(item) {
|
|
149
|
+
const newItem = {
|
|
150
|
+
...item,
|
|
151
|
+
path: `${item.parentPath}/${item.name}.js}`,
|
|
152
|
+
isFolder: false,
|
|
153
|
+
hasChildren: false,
|
|
154
|
+
type: 'script',
|
|
155
|
+
};
|
|
156
|
+
this.insert(newItem);
|
|
157
|
+
return newItem;
|
|
158
|
+
}
|
|
159
|
+
insert(item) {
|
|
160
|
+
const exits = this.data.find((i) => i.path === item.path);
|
|
161
|
+
if (exits) {
|
|
162
|
+
throw new Error(`Item with path ${item.path} already exists`);
|
|
163
|
+
}
|
|
164
|
+
this.data.push(item);
|
|
165
|
+
return item;
|
|
166
|
+
}
|
|
167
|
+
updateData(updateItem) {
|
|
168
|
+
const itemIndex = this.data.findIndex((item) => item.path === updateItem.existingPath);
|
|
169
|
+
const item = this.data[itemIndex];
|
|
170
|
+
if (!item)
|
|
171
|
+
return;
|
|
172
|
+
// TODO: revisit this code, seems like something we can solve smarter/type safer now:
|
|
173
|
+
const itemKeys = Object.keys(item);
|
|
174
|
+
const newItem = { ...item };
|
|
175
|
+
for (const [key] of Object.entries(updateItem)) {
|
|
176
|
+
if (itemKeys.indexOf(key) !== -1) {
|
|
177
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
newItem[key] = updateItem[key];
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
// Specific to fileSystem, we need to update path based on name:
|
|
183
|
+
const dirName = updateItem.existingPath?.substring(0, updateItem.existingPath.lastIndexOf('/'));
|
|
184
|
+
newItem.path = `${dirName}${dirName ? '/' : ''}${updateItem.name}`;
|
|
185
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
186
|
+
// @ts-ignore
|
|
187
|
+
this.data[itemIndex] = newItem;
|
|
188
|
+
}
|
|
189
|
+
delete(paths) {
|
|
190
|
+
const pathsOfItemsToDelete = this.data
|
|
191
|
+
.filter((item) => {
|
|
192
|
+
if (!item.path)
|
|
193
|
+
throw new Error('Item has no path');
|
|
194
|
+
return paths.includes(item.path);
|
|
195
|
+
})
|
|
196
|
+
.map((item) => item.path);
|
|
197
|
+
this.data = this.data.filter((item) => {
|
|
198
|
+
if (!item.path)
|
|
199
|
+
throw new Error('Item has no path');
|
|
200
|
+
return paths.indexOf(item.path) === -1;
|
|
201
|
+
});
|
|
202
|
+
return pathsOfItemsToDelete;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
export const umbScriptsData = new UmbScriptsData();
|
|
@@ -1,38 +1,37 @@
|
|
|
1
1
|
const { rest } = window.MockServiceWorker;
|
|
2
|
-
import { umbDocumentData } from '
|
|
3
|
-
import { umbracoPath } from '
|
|
2
|
+
import { umbDocumentData } from '../../data/document.data.js';
|
|
3
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
4
4
|
// TODO: add schema
|
|
5
5
|
export const handlers = [
|
|
6
|
-
rest.
|
|
7
|
-
|
|
8
|
-
const ids = await req.json();
|
|
9
|
-
const trashed = umbDocumentData.trash(ids);
|
|
10
|
-
return res(ctx.status(200), ctx.json(trashed));
|
|
11
|
-
}),
|
|
12
|
-
rest.get(umbracoPath('/tree/document/root'), (req, res, ctx) => {
|
|
13
|
-
const response = umbDocumentData.getTreeRoot();
|
|
6
|
+
rest.get(umbracoPath('/document/root/allowed-document-types'), (req, res, ctx) => {
|
|
7
|
+
const response = umbDocumentData.getAllowedDocumentTypesAtRoot();
|
|
14
8
|
return res(ctx.status(200), ctx.json(response));
|
|
15
9
|
}),
|
|
16
|
-
rest.
|
|
17
|
-
const
|
|
18
|
-
|
|
10
|
+
rest.put(umbracoPath('/document/:id/move-to-recycle-bin'), async (req, res, ctx) => {
|
|
11
|
+
const id = req.params.id;
|
|
12
|
+
umbDocumentData.trash([id]);
|
|
13
|
+
return res(ctx.status(200));
|
|
14
|
+
}),
|
|
15
|
+
rest.get(umbracoPath('/document/:id/allowed-document-types'), (req, res, ctx) => {
|
|
16
|
+
const id = req.params.id;
|
|
17
|
+
if (!id)
|
|
19
18
|
return;
|
|
20
|
-
const response = umbDocumentData.
|
|
19
|
+
const response = umbDocumentData.getDocumentByIdAllowedDocumentTypes(id);
|
|
21
20
|
return res(ctx.status(200), ctx.json(response));
|
|
22
21
|
}),
|
|
23
|
-
rest.get(umbracoPath('/
|
|
24
|
-
const
|
|
25
|
-
if (!
|
|
22
|
+
rest.get(umbracoPath('/document/:id'), (req, res, ctx) => {
|
|
23
|
+
const id = req.params.id;
|
|
24
|
+
if (!id)
|
|
26
25
|
return;
|
|
27
|
-
const
|
|
28
|
-
return res(ctx.status(200), ctx.json(
|
|
26
|
+
const document = umbDocumentData.getById(id);
|
|
27
|
+
return res(ctx.status(200), ctx.json(document));
|
|
29
28
|
}),
|
|
30
|
-
rest.
|
|
31
|
-
const
|
|
32
|
-
if (!
|
|
29
|
+
rest.delete(umbracoPath('/document/:id'), (req, res, ctx) => {
|
|
30
|
+
const id = req.params.id;
|
|
31
|
+
if (!id)
|
|
33
32
|
return;
|
|
34
|
-
umbDocumentData.
|
|
35
|
-
return res(ctx.status(200));
|
|
33
|
+
const document = umbDocumentData.getById(id);
|
|
34
|
+
return res(ctx.status(200), ctx.json(document));
|
|
36
35
|
}),
|
|
37
36
|
rest.put(umbracoPath(`/document/:id`), async (req, res, ctx) => {
|
|
38
37
|
const id = req.params.id;
|
|
@@ -44,22 +43,11 @@ export const handlers = [
|
|
|
44
43
|
const saved = umbDocumentData.save(id, data);
|
|
45
44
|
return res(ctx.status(200), ctx.json(saved));
|
|
46
45
|
}),
|
|
47
|
-
rest.
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
rest.get(umbracoPath('/document/:id/allowed-document-types'), (req, res, ctx) => {
|
|
52
|
-
const id = req.params.id;
|
|
53
|
-
if (!id)
|
|
54
|
-
return;
|
|
55
|
-
const response = umbDocumentData.getDocumentByIdAllowedDocumentTypes(id);
|
|
56
|
-
return res(ctx.status(200), ctx.json(response));
|
|
57
|
-
}),
|
|
58
|
-
rest.get(umbracoPath('/document/:id'), (req, res, ctx) => {
|
|
59
|
-
const id = req.params.id;
|
|
60
|
-
if (!id)
|
|
46
|
+
rest.post(umbracoPath(`/document`), async (req, res, ctx) => {
|
|
47
|
+
const data = await req.json();
|
|
48
|
+
if (!data)
|
|
61
49
|
return;
|
|
62
|
-
|
|
63
|
-
return res(ctx.status(200)
|
|
50
|
+
umbDocumentData.insert(data);
|
|
51
|
+
return res(ctx.status(200));
|
|
64
52
|
}),
|
|
65
53
|
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { handlers as recycleBinHandlers } from './recycle-bin.handlers.js';
|
|
2
|
+
import { handlers as treeHandlers } from './tree.handlers.js';
|
|
3
|
+
import { handlers as documentHandlers } from './document.handlers.js';
|
|
4
|
+
import { handlers as itemHandlers } from './item.handlers.js';
|
|
5
|
+
export const handlers = [...recycleBinHandlers, ...treeHandlers, ...itemHandlers, ...documentHandlers];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbDocumentData } from '../../data/document.data.js';
|
|
3
|
+
import { slug } from './slug.js';
|
|
4
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
5
|
+
export const handlers = [
|
|
6
|
+
rest.get(umbracoPath(`${slug}/item`), (req, res, ctx) => {
|
|
7
|
+
const ids = req.url.searchParams.getAll('id');
|
|
8
|
+
if (!ids)
|
|
9
|
+
return;
|
|
10
|
+
const items = umbDocumentData.getItems(ids);
|
|
11
|
+
return res(ctx.status(200), ctx.json(items));
|
|
12
|
+
}),
|
|
13
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbDocumentData } from '../../data/document.data.js';
|
|
3
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
4
|
+
export const handlers = [
|
|
5
|
+
rest.get(umbracoPath(`/recycle-bin/document/root`), (req, res, ctx) => {
|
|
6
|
+
const response = umbDocumentData.getRecycleBinRoot();
|
|
7
|
+
return res(ctx.status(200), ctx.json(response));
|
|
8
|
+
}),
|
|
9
|
+
rest.get(umbracoPath(`/recycle-bin/document/children`), (req, res, ctx) => {
|
|
10
|
+
const parentId = req.url.searchParams.get('parentId');
|
|
11
|
+
if (!parentId)
|
|
12
|
+
return;
|
|
13
|
+
const response = umbDocumentData.getRecycleBinChildrenOf(parentId);
|
|
14
|
+
return res(ctx.status(200), ctx.json(response));
|
|
15
|
+
}),
|
|
16
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const slug = "/document";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const slug = '/document';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const handlers: import("msw").RestHandler<import("msw/lib/glossary-de6278a9.js").M<import("msw/lib/glossary-de6278a9.js").h>>[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbDocumentData } from '../../data/document.data.js';
|
|
3
|
+
import { umbracoPath } from '../../../shared/utils/index.js';
|
|
4
|
+
export const handlers = [
|
|
5
|
+
rest.get(umbracoPath('/tree/document/root'), (req, res, ctx) => {
|
|
6
|
+
const response = umbDocumentData.getTreeRoot();
|
|
7
|
+
return res(ctx.status(200), ctx.json(response));
|
|
8
|
+
}),
|
|
9
|
+
rest.get(umbracoPath('/tree/document/children'), (req, res, ctx) => {
|
|
10
|
+
const parentId = req.url.searchParams.get('parentId');
|
|
11
|
+
if (!parentId)
|
|
12
|
+
return;
|
|
13
|
+
const response = umbDocumentData.getTreeItemChildrenOf(parentId);
|
|
14
|
+
return res(ctx.status(200), ctx.json(response));
|
|
15
|
+
}),
|
|
16
|
+
];
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const { rest } = window.MockServiceWorker;
|
|
2
|
+
import { umbScriptsData } from '../data/scripts.data.js';
|
|
3
|
+
import { umbracoPath } from '../../shared/utils/index.js';
|
|
4
|
+
const treeHandlers = [
|
|
5
|
+
rest.get(umbracoPath('/tree/script/root'), (req, res, ctx) => {
|
|
6
|
+
const response = umbScriptsData.getTreeRoot();
|
|
7
|
+
return res(ctx.status(200), ctx.json(response));
|
|
8
|
+
}),
|
|
9
|
+
rest.get(umbracoPath('/tree/script/children'), (req, res, ctx) => {
|
|
10
|
+
const path = req.url.searchParams.get('path');
|
|
11
|
+
if (!path)
|
|
12
|
+
return;
|
|
13
|
+
const response = umbScriptsData.getTreeItemChildren(path);
|
|
14
|
+
return res(ctx.status(200), ctx.json(response));
|
|
15
|
+
}),
|
|
16
|
+
rest.get(umbracoPath('/tree/script/item'), (req, res, ctx) => {
|
|
17
|
+
const paths = req.url.searchParams.getAll('paths');
|
|
18
|
+
if (!paths)
|
|
19
|
+
return;
|
|
20
|
+
const items = umbScriptsData.getTreeItem(paths);
|
|
21
|
+
return res(ctx.status(200), ctx.json(items));
|
|
22
|
+
}),
|
|
23
|
+
];
|
|
24
|
+
const detailHandlers = [
|
|
25
|
+
rest.get(umbracoPath('/script'), (req, res, ctx) => {
|
|
26
|
+
const path = decodeURIComponent(req.url.searchParams.get('path') ?? '').replace('-js', '.js');
|
|
27
|
+
if (!path)
|
|
28
|
+
return res(ctx.status(400));
|
|
29
|
+
const response = umbScriptsData.getScript(path);
|
|
30
|
+
return res(ctx.status(200), ctx.json(response));
|
|
31
|
+
}),
|
|
32
|
+
rest.get(umbracoPath('/script/item'), (req, res, ctx) => {
|
|
33
|
+
const path = decodeURIComponent(req.url.searchParams.get('path') ?? '').replace('-js', '.js');
|
|
34
|
+
if (!path)
|
|
35
|
+
return res(ctx.status(400, 'no body found'));
|
|
36
|
+
const response = umbScriptsData.getItem([path]);
|
|
37
|
+
return res(ctx.status(200), ctx.json(response));
|
|
38
|
+
}),
|
|
39
|
+
rest.post(umbracoPath('/script'), async (req, res, ctx) => {
|
|
40
|
+
const requestBody = (await req.json());
|
|
41
|
+
if (!requestBody)
|
|
42
|
+
return res(ctx.status(400, 'no body found'));
|
|
43
|
+
const response = umbScriptsData.insertScript(requestBody);
|
|
44
|
+
return res(ctx.status(200), ctx.json(response));
|
|
45
|
+
}),
|
|
46
|
+
rest.delete(umbracoPath('/script'), (req, res, ctx) => {
|
|
47
|
+
const path = req.url.searchParams.get('path');
|
|
48
|
+
if (!path)
|
|
49
|
+
return res(ctx.status(400));
|
|
50
|
+
const response = umbScriptsData.delete([path]);
|
|
51
|
+
return res(ctx.status(200), ctx.json(response));
|
|
52
|
+
}),
|
|
53
|
+
rest.put(umbracoPath('/script'), async (req, res, ctx) => {
|
|
54
|
+
const requestBody = (await req.json());
|
|
55
|
+
if (!requestBody)
|
|
56
|
+
return res(ctx.status(400, 'no body found'));
|
|
57
|
+
const response = umbScriptsData.updateData(requestBody);
|
|
58
|
+
return res(ctx.status(200));
|
|
59
|
+
}),
|
|
60
|
+
];
|
|
61
|
+
const folderHandlers = [
|
|
62
|
+
rest.get(umbracoPath('script/folder'), (req, res, ctx) => {
|
|
63
|
+
const path = decodeURIComponent(req.url.searchParams.get('path') ?? '').replace('-js', '.js');
|
|
64
|
+
if (!path)
|
|
65
|
+
return res(ctx.status(400));
|
|
66
|
+
const response = umbScriptsData.getFolder(path);
|
|
67
|
+
return res(ctx.status(200), ctx.json(response));
|
|
68
|
+
}),
|
|
69
|
+
rest.post(umbracoPath('script/folder'), (req, res, ctx) => {
|
|
70
|
+
const requestBody = req.json();
|
|
71
|
+
if (!requestBody)
|
|
72
|
+
return res(ctx.status(400, 'no body found'));
|
|
73
|
+
return res(ctx.status(200));
|
|
74
|
+
}),
|
|
75
|
+
rest.delete(umbracoPath('script/folder'), (req, res, ctx) => {
|
|
76
|
+
const path = decodeURIComponent(req.url.searchParams.get('path') ?? '').replace('-js', '.js');
|
|
77
|
+
if (!path)
|
|
78
|
+
return res(ctx.status(400));
|
|
79
|
+
const response = umbScriptsData.deleteFolder(path);
|
|
80
|
+
return res(ctx.status(200), ctx.json(response));
|
|
81
|
+
}),
|
|
82
|
+
];
|
|
83
|
+
export const handlers = [...treeHandlers, ...detailHandlers, ...folderHandlers];
|
package/dist-cms/packages/core/content-type/content-type-container-structure-helper.class.js
CHANGED
|
@@ -14,7 +14,7 @@ export class UmbContentTypeContainerStructureHelper {
|
|
|
14
14
|
// Containers defined in data might be more than actual containers to display as we merge them by name.
|
|
15
15
|
// Direct containers are the containers defining the total of this container(Multiple containers with the same name and type)
|
|
16
16
|
this._ownerAlikeContainers = [];
|
|
17
|
-
// Owner containers are containers owned by the owner
|
|
17
|
+
// Owner containers are containers owned by the owner Content Type (The specific one up for editing)
|
|
18
18
|
this._ownerContainers = [];
|
|
19
19
|
// State containing the merged containers (only one pr. name):
|
|
20
20
|
this.#containers = new UmbArrayState([], (x) => x.id);
|
|
@@ -172,7 +172,7 @@ export class UmbContentTypeContainerStructureHelper {
|
|
|
172
172
|
await this.#init;
|
|
173
173
|
if (!this.#structure)
|
|
174
174
|
return;
|
|
175
|
-
const newName = this.#structure.
|
|
175
|
+
const newName = this.#structure.makeContainerNameUniqueForOwnerContentType(name, this._childType, containerParentId) ?? name;
|
|
176
176
|
return await this.partialUpdateContainer(containerId, { name: newName });
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -16,7 +16,7 @@ export class UmbContentTypePropertyStructureHelper {
|
|
|
16
16
|
this.#propertyStructure.sortBy((a, b) => (a.sortOrder ?? 0) - (b.sortOrder ?? 0));
|
|
17
17
|
}
|
|
18
18
|
get ownerDocumentTypes() {
|
|
19
|
-
return this.#structure?.
|
|
19
|
+
return this.#structure?.contentTypes;
|
|
20
20
|
}
|
|
21
21
|
setStructureManager(structure) {
|
|
22
22
|
this.#structure = structure;
|
|
@@ -6,8 +6,8 @@ export type PropertyContainerTypes = 'Group' | 'Tab';
|
|
|
6
6
|
type T = DocumentTypeResponseModel;
|
|
7
7
|
export declare class UmbContentTypePropertyStructureManager<R extends UmbDetailRepository<T> = UmbDetailRepository<T>> {
|
|
8
8
|
#private;
|
|
9
|
-
readonly
|
|
10
|
-
private readonly
|
|
9
|
+
readonly contentTypes: import("rxjs").Observable<DocumentTypeResponseModel[]>;
|
|
10
|
+
private readonly _contentTypeContainers;
|
|
11
11
|
constructor(host: UmbControllerHostElement, typeRepository: R);
|
|
12
12
|
/**
|
|
13
13
|
* loadType will load the node type and all inherited and composed types.
|
|
@@ -27,26 +27,26 @@ export declare class UmbContentTypePropertyStructureManager<R extends UmbDetailR
|
|
|
27
27
|
create(): Promise<boolean>;
|
|
28
28
|
private _ensureType;
|
|
29
29
|
private _loadType;
|
|
30
|
-
|
|
31
|
-
private
|
|
30
|
+
_observeContentType(data: T): Promise<void>;
|
|
31
|
+
private _loadContentTypeCompositions;
|
|
32
32
|
/** Public methods for consuming structure: */
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
ownerContentType(): import("rxjs").Observable<DocumentTypeResponseModel | undefined>;
|
|
34
|
+
getOwnerContentType(): DocumentTypeResponseModel | undefined;
|
|
35
|
+
updateOwnerContentType(entry: T): void;
|
|
36
36
|
createContainer(contentTypeId: string | null, parentId?: string | null, type?: PropertyContainerTypes, sortOrder?: number): Promise<PropertyTypeContainerModelBaseModel>;
|
|
37
|
-
|
|
38
|
-
updateContainer(
|
|
39
|
-
removeContainer(
|
|
37
|
+
makeContainerNameUniqueForOwnerContentType(newName: string, containerType?: PropertyContainerTypes, parentId?: string | null): string | null;
|
|
38
|
+
updateContainer(contentTypeId: string | null, containerId: string, partialUpdate: Partial<PropertyTypeContainerModelBaseModel>): Promise<void>;
|
|
39
|
+
removeContainer(contentTypeId: string | null, containerId?: string | null): Promise<void>;
|
|
40
40
|
createPropertyScaffold(containerId?: string | null, sortOrder?: number): PropertyTypeModelBaseModel;
|
|
41
|
-
createProperty(
|
|
42
|
-
insertProperty(
|
|
43
|
-
removeProperty(
|
|
44
|
-
updateProperty(
|
|
41
|
+
createProperty(contentTypeId: string | null, containerId?: string | null, sortOrder?: number): Promise<PropertyTypeModelBaseModel>;
|
|
42
|
+
insertProperty(contentTypeId: string | null, property: PropertyTypeModelBaseModel): Promise<void>;
|
|
43
|
+
removeProperty(contentTypeId: string | null, propertyId: string): Promise<void>;
|
|
44
|
+
updateProperty(contentTypeId: string | null, propertyId: string, partialUpdate: Partial<PropertyTypeModelBaseModel>): Promise<void>;
|
|
45
45
|
propertyStructureById(propertyId: string): Promise<import("rxjs").Observable<PropertyTypeModelBaseModel | undefined>>;
|
|
46
46
|
propertyStructureByAlias(propertyAlias: string): Promise<import("rxjs").Observable<PropertyTypeModelBaseModel | undefined>>;
|
|
47
47
|
getPropertyStructureById(propertyId: string): Promise<PropertyTypeModelBaseModel | undefined>;
|
|
48
48
|
getPropertyStructureByAlias(propertyAlias: string): Promise<PropertyTypeModelBaseModel | undefined>;
|
|
49
|
-
|
|
49
|
+
ownerContentTypeObservablePart<PartResult>(mappingFunction: MappingFunction<T, PartResult>): import("rxjs").Observable<PartResult | undefined>;
|
|
50
50
|
hasPropertyStructuresOf(containerId: string | null): import("rxjs").Observable<boolean>;
|
|
51
51
|
rootPropertyStructures(): import("rxjs").Observable<PropertyTypeModelBaseModel[]>;
|
|
52
52
|
propertyStructuresOf(containerId: string | null): import("rxjs").Observable<PropertyTypeModelBaseModel[]>;
|