@umbraco-cms/backoffice 14.0.0-695f1c3f → 14.0.0-709b3cbf

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.
Files changed (243) hide show
  1. package/dist-cms/apps/app/app.element.js +1 -1
  2. package/dist-cms/apps/app/index.d.ts +1 -0
  3. package/dist-cms/apps/app/index.js +1 -0
  4. package/dist-cms/assets/lang/en-us.js +18 -18
  5. package/dist-cms/assets/lang/en-us.ts +18 -18
  6. package/dist-cms/custom-elements.json +71 -49
  7. package/dist-cms/external/backend-api/index.js +1 -1
  8. package/dist-cms/external/backend-api/src/index.d.ts +17 -1
  9. package/dist-cms/external/backend-api/src/models/CreateContentRequestModelBaseDocumentValueModelDocumentVariantRequestModel.d.ts +1 -0
  10. package/dist-cms/external/backend-api/src/models/CreateContentRequestModelBaseMediaValueModelMediaVariantRequestModel.d.ts +1 -0
  11. package/dist-cms/external/backend-api/src/models/CreateContentTypeRequestModelBaseCreateDocumentTypePropertyTypeRequestModelCreateDocumentTypePropertyTypeContainerRequestModel.d.ts +2 -0
  12. package/dist-cms/external/backend-api/src/models/CreateContentTypeRequestModelBaseCreateMediaTypePropertyTypeRequestModelCreateMediaTypePropertyTypeContainerRequestModel.d.ts +20 -0
  13. package/dist-cms/external/backend-api/src/models/CreateMediaTypePropertyTypeContainerRequestModel.d.ts +2 -0
  14. package/dist-cms/external/backend-api/src/models/CreateMediaTypePropertyTypeRequestModel.d.ts +2 -0
  15. package/dist-cms/external/backend-api/src/models/CreateMediaTypeRequestModel.d.ts +2 -0
  16. package/dist-cms/external/backend-api/src/models/DeleteUserGroupsRequestModel.d.ts +3 -0
  17. package/dist-cms/external/backend-api/src/models/DeleteUsersRequestModel.d.ts +3 -0
  18. package/dist-cms/external/backend-api/src/models/ItemSortingRequestModel.d.ts +4 -0
  19. package/dist-cms/external/backend-api/src/models/ProblemDetailsBuilderModel.d.ts +1 -0
  20. package/dist-cms/external/backend-api/src/models/RelationResponseModel.d.ts +2 -2
  21. package/dist-cms/external/backend-api/src/models/ResetPasswordRequestModel.d.ts +3 -0
  22. package/dist-cms/external/backend-api/src/models/ResetPasswordTokenRequestModel.d.ts +4 -0
  23. package/dist-cms/external/backend-api/src/models/SortingRequestModel.d.ts +5 -0
  24. package/dist-cms/external/backend-api/src/models/UpdateContentTypeRequestModelBaseUpdateMediaTypePropertyTypeRequestModelUpdateMediaTypePropertyTypeContainerRequestModel.d.ts +18 -0
  25. package/dist-cms/external/backend-api/src/models/{UpdateFolderReponseModel.d.ts → UpdateFolderResponseModel.d.ts} +1 -1
  26. package/dist-cms/external/backend-api/src/models/UpdateMediaTypePropertyTypeContainerRequestModel.d.ts +2 -0
  27. package/dist-cms/external/backend-api/src/models/UpdateMediaTypePropertyTypeRequestModel.d.ts +2 -0
  28. package/dist-cms/external/backend-api/src/models/UpdateMediaTypeRequestModel.d.ts +2 -0
  29. package/dist-cms/external/backend-api/src/models/VerifyResetPasswordTokenRequestModel.d.ts +4 -0
  30. package/dist-cms/external/backend-api/src/services/DataTypeResource.d.ts +2 -2
  31. package/dist-cms/external/backend-api/src/services/DocumentResource.d.ts +21 -21
  32. package/dist-cms/external/backend-api/src/services/DocumentTypeResource.d.ts +35 -3
  33. package/dist-cms/external/backend-api/src/services/MediaResource.d.ts +13 -5
  34. package/dist-cms/external/backend-api/src/services/MediaTypeResource.d.ts +56 -0
  35. package/dist-cms/external/backend-api/src/services/RelationResource.d.ts +1 -9
  36. package/dist-cms/external/backend-api/src/services/SecurityResource.d.ts +24 -0
  37. package/dist-cms/external/backend-api/src/services/UserGroupResource.d.ts +8 -0
  38. package/dist-cms/external/backend-api/src/services/UserResource.d.ts +8 -0
  39. package/dist-cms/external/router-slot/config.d.ts +8 -0
  40. package/dist-cms/external/router-slot/index.d.ts +4 -3
  41. package/dist-cms/external/router-slot/index.js +1 -1
  42. package/dist-cms/external/router-slot/model.d.ts +123 -0
  43. package/dist-cms/external/router-slot/router-slot.d.ts +111 -0
  44. package/dist-cms/external/router-slot/util/anchor.d.ts +5 -0
  45. package/dist-cms/external/router-slot/util/events.d.ts +26 -0
  46. package/dist-cms/external/router-slot/util/history.d.ts +32 -0
  47. package/dist-cms/external/router-slot/util/index.d.ts +6 -0
  48. package/dist-cms/external/router-slot/util/router.d.ts +72 -0
  49. package/dist-cms/external/router-slot/util/shadow.d.ts +15 -0
  50. package/dist-cms/external/router-slot/util/url.d.ts +78 -0
  51. package/dist-cms/external/router-slot/util.d.ts +1 -0
  52. package/dist-cms/libs/observable-api/observer.js +2 -1
  53. package/dist-cms/mocks/browser-handlers.js +3 -1
  54. package/dist-cms/mocks/data/document.data.d.ts +6 -2
  55. package/dist-cms/mocks/data/document.data.js +54 -4
  56. package/dist-cms/mocks/data/entity.data.js +0 -2
  57. package/dist-cms/mocks/data/scripts.data.d.ts +21 -0
  58. package/dist-cms/mocks/data/scripts.data.js +205 -0
  59. package/dist-cms/mocks/handlers/{document.handlers.js → document/document.handlers.js} +28 -40
  60. package/dist-cms/mocks/handlers/document/index.d.ts +1 -0
  61. package/dist-cms/mocks/handlers/document/index.js +5 -0
  62. package/dist-cms/mocks/handlers/document/item.handlers.d.ts +1 -0
  63. package/dist-cms/mocks/handlers/document/item.handlers.js +13 -0
  64. package/dist-cms/mocks/handlers/document/recycle-bin.handlers.d.ts +1 -0
  65. package/dist-cms/mocks/handlers/document/recycle-bin.handlers.js +16 -0
  66. package/dist-cms/mocks/handlers/document/slug.d.ts +1 -0
  67. package/dist-cms/mocks/handlers/document/slug.js +1 -0
  68. package/dist-cms/mocks/handlers/document/tree.handlers.d.ts +1 -0
  69. package/dist-cms/mocks/handlers/document/tree.handlers.js +16 -0
  70. package/dist-cms/mocks/handlers/scripts.handlers.d.ts +2 -0
  71. package/dist-cms/mocks/handlers/scripts.handlers.js +83 -0
  72. package/dist-cms/packages/core/components/input-list-base/input-list-base.js +1 -1
  73. package/dist-cms/packages/core/content-type/content-type-container-structure-helper.class.js +2 -2
  74. package/dist-cms/packages/core/content-type/content-type-property-structure-helper.class.js +1 -1
  75. package/dist-cms/packages/core/content-type/content-type-structure-manager.class.d.ts +15 -15
  76. package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +79 -103
  77. package/dist-cms/packages/core/culture/components/index.d.ts +1 -0
  78. package/dist-cms/packages/core/culture/components/index.js +1 -0
  79. package/dist-cms/packages/{settings/cultures → core/culture}/components/input-culture-select/input-culture-select.element.js +5 -5
  80. package/dist-cms/packages/core/culture/index.d.ts +2 -0
  81. package/dist-cms/packages/core/culture/index.js +2 -0
  82. package/dist-cms/packages/core/culture/manifests.d.ts +1 -0
  83. package/dist-cms/packages/{settings/cultures → core/culture}/repository/culture.repository.js +1 -1
  84. package/dist-cms/packages/{settings/cultures → core/culture}/repository/manifests.d.ts +1 -1
  85. package/dist-cms/packages/{settings/cultures → core/culture}/repository/manifests.js +1 -1
  86. package/dist-cms/packages/core/entity-action/common/trash/trash.action.d.ts +1 -1
  87. package/dist-cms/packages/core/entity-action/common/trash/trash.action.js +1 -1
  88. package/dist-cms/packages/core/index.d.ts +1 -0
  89. package/dist-cms/packages/core/index.js +3 -0
  90. package/dist-cms/packages/core/modal/token/create-document-modal.token.d.ts +8 -0
  91. package/dist-cms/packages/core/modal/token/create-document-modal.token.js +5 -0
  92. package/dist-cms/packages/core/modal/token/index.d.ts +1 -1
  93. package/dist-cms/packages/core/modal/token/index.js +1 -1
  94. package/dist-cms/packages/core/store/store-base.d.ts +18 -6
  95. package/dist-cms/packages/core/store/store-base.js +22 -6
  96. package/dist-cms/packages/documents/document-types/entity-actions/manifests.js +1 -1
  97. package/dist-cms/packages/documents/document-types/manifests.js +0 -2
  98. package/dist-cms/packages/documents/document-types/repository/document-type-item.store.d.ts +20 -0
  99. package/dist-cms/packages/documents/document-types/repository/document-type-item.store.js +23 -0
  100. package/dist-cms/packages/documents/document-types/repository/document-type.repository.d.ts +5 -21
  101. package/dist-cms/packages/documents/document-types/repository/document-type.repository.js +26 -20
  102. package/dist-cms/packages/documents/document-types/repository/manifests.d.ts +3 -2
  103. package/dist-cms/packages/documents/document-types/repository/manifests.js +9 -1
  104. package/dist-cms/packages/documents/document-types/repository/sources/document-type-item.server.data.d.ts +25 -0
  105. package/dist-cms/packages/documents/document-types/repository/sources/document-type-item.server.data.js +32 -0
  106. package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.d.ts +1 -1
  107. package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.js +1 -12
  108. package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.context.js +27 -27
  109. package/dist-cms/packages/documents/document-types/workspace/views/design/document-type-workspace-view-edit.element.js +8 -4
  110. package/dist-cms/packages/documents/documents/entity-actions/create/create-document-modal.element.d.ts +17 -0
  111. 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
  112. package/dist-cms/packages/documents/documents/entity-actions/create/create.action.d.ts +0 -2
  113. package/dist-cms/packages/documents/documents/entity-actions/create/create.action.js +7 -23
  114. package/dist-cms/packages/documents/documents/entity-actions/create/manifests.d.ts +2 -0
  115. package/dist-cms/packages/documents/documents/entity-actions/create/manifests.js +27 -0
  116. package/dist-cms/packages/documents/documents/entity-actions/manifests.d.ts +2 -2
  117. package/dist-cms/packages/documents/documents/entity-actions/manifests.js +15 -48
  118. package/dist-cms/packages/documents/documents/index.d.ts +1 -0
  119. package/dist-cms/packages/documents/documents/index.js +1 -0
  120. package/dist-cms/packages/documents/documents/manifests.d.ts +13 -1
  121. package/dist-cms/packages/documents/documents/manifests.js +2 -0
  122. package/dist-cms/packages/documents/documents/menu-item/manifests.js +1 -1
  123. package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.d.ts +14 -0
  124. package/dist-cms/packages/documents/documents/recycle-bin/entity-action/manifests.js +18 -0
  125. package/dist-cms/packages/documents/documents/recycle-bin/index.d.ts +1 -0
  126. package/dist-cms/packages/documents/documents/recycle-bin/index.js +1 -0
  127. package/dist-cms/packages/documents/documents/recycle-bin/manifests.d.ts +13 -0
  128. package/dist-cms/packages/documents/documents/recycle-bin/manifests.js +5 -0
  129. package/dist-cms/packages/documents/documents/recycle-bin/menu-item/manifests.d.ts +1 -0
  130. package/dist-cms/packages/documents/documents/recycle-bin/menu-item/manifests.js +14 -0
  131. package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.d.ts +28 -0
  132. package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle-bin.repository.js +56 -0
  133. package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle.bin.tree.store.d.ts +18 -0
  134. package/dist-cms/packages/documents/documents/recycle-bin/repository/document-recycle.bin.tree.store.js +19 -0
  135. package/dist-cms/packages/documents/documents/recycle-bin/repository/index.d.ts +1 -0
  136. package/dist-cms/packages/documents/documents/recycle-bin/repository/index.js +1 -0
  137. package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.d.ts +4 -0
  138. package/dist-cms/packages/documents/documents/recycle-bin/repository/manifests.js +17 -0
  139. package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.d.ts +29 -0
  140. package/dist-cms/packages/documents/documents/recycle-bin/repository/sources/document-recycle-bin.tree.server.data.js +49 -0
  141. package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.d.ts +2 -0
  142. package/dist-cms/packages/documents/documents/recycle-bin/tree/manifests.js +19 -0
  143. package/dist-cms/packages/documents/documents/repository/document-item.store.d.ts +20 -0
  144. package/dist-cms/packages/documents/documents/repository/document-item.store.js +23 -0
  145. package/dist-cms/packages/documents/documents/repository/document.repository.d.ts +10 -9
  146. package/dist-cms/packages/documents/documents/repository/document.repository.js +47 -25
  147. package/dist-cms/packages/documents/documents/repository/document.store.d.ts +0 -12
  148. package/dist-cms/packages/documents/documents/repository/document.store.js +0 -16
  149. package/dist-cms/packages/documents/documents/repository/sources/document-item.server.data.d.ts +24 -0
  150. package/dist-cms/packages/documents/documents/repository/sources/document-item.server.data.js +31 -0
  151. package/dist-cms/packages/documents/documents/repository/sources/document.server.data.d.ts +9 -21
  152. package/dist-cms/packages/documents/documents/repository/sources/document.server.data.js +33 -62
  153. package/dist-cms/packages/documents/documents/workspace/manifests.js +6 -4
  154. package/dist-cms/packages/documents/manifests.d.ts +13 -1
  155. package/dist-cms/packages/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.d.ts +3 -1
  156. package/dist-cms/packages/settings/dashboards/performance-profiling/dashboard-performance-profiling.element.js +26 -40
  157. package/dist-cms/packages/settings/manifests.js +0 -2
  158. package/dist-cms/packages/settings/relation-types/workspace/views/relation/workspace-view-relation-type-relation.element.js +17 -17
  159. package/dist-cms/packages/templating/manifests.js +2 -0
  160. package/dist-cms/packages/templating/scripts/config.d.ts +20 -0
  161. package/dist-cms/packages/templating/scripts/config.js +22 -0
  162. package/dist-cms/packages/templating/scripts/entity-actions/create/create-empty.action.d.ts +8 -0
  163. package/dist-cms/packages/templating/scripts/entity-actions/create/create-empty.action.js +9 -0
  164. package/dist-cms/packages/templating/scripts/entity-actions/manifests.d.ts +2 -0
  165. package/dist-cms/packages/templating/scripts/entity-actions/manifests.js +56 -0
  166. package/dist-cms/packages/templating/scripts/index.d.ts +2 -0
  167. package/dist-cms/packages/templating/scripts/index.js +2 -0
  168. package/dist-cms/packages/templating/scripts/manifests.d.ts +1 -0
  169. package/dist-cms/packages/templating/scripts/manifests.js +12 -0
  170. package/dist-cms/packages/templating/scripts/menu-item/manifests.d.ts +1 -0
  171. package/dist-cms/packages/templating/scripts/menu-item/manifests.js +16 -0
  172. package/dist-cms/packages/templating/scripts/repository/index.d.ts +1 -0
  173. package/dist-cms/packages/templating/scripts/repository/index.js +1 -0
  174. package/dist-cms/packages/templating/scripts/repository/manifests.d.ts +2 -0
  175. package/dist-cms/packages/templating/scripts/repository/manifests.js +23 -0
  176. package/dist-cms/packages/templating/scripts/repository/scripts.repository.d.ts +71 -0
  177. package/dist-cms/packages/templating/scripts/repository/scripts.repository.js +154 -0
  178. package/dist-cms/packages/templating/scripts/repository/scripts.store.d.ts +31 -0
  179. package/dist-cms/packages/templating/scripts/repository/scripts.store.js +37 -0
  180. package/dist-cms/packages/templating/scripts/repository/scripts.tree.store.d.ts +19 -0
  181. package/dist-cms/packages/templating/scripts/repository/scripts.tree.store.js +21 -0
  182. package/dist-cms/packages/templating/scripts/repository/sources/index.d.ts +11 -0
  183. package/dist-cms/packages/templating/scripts/repository/sources/index.js +1 -0
  184. package/dist-cms/packages/templating/scripts/repository/sources/scripts.detail.server.data.d.ts +41 -0
  185. package/dist-cms/packages/templating/scripts/repository/sources/scripts.detail.server.data.js +57 -0
  186. package/dist-cms/packages/templating/scripts/repository/sources/scripts.folder.server.data.d.ts +17 -0
  187. package/dist-cms/packages/templating/scripts/repository/sources/scripts.folder.server.data.js +23 -0
  188. package/dist-cms/packages/templating/scripts/repository/sources/scripts.tree.server.data.d.ts +14 -0
  189. package/dist-cms/packages/templating/scripts/repository/sources/scripts.tree.server.data.js +31 -0
  190. package/dist-cms/packages/templating/scripts/tree/manifests.d.ts +2 -0
  191. package/dist-cms/packages/templating/scripts/tree/manifests.js +20 -0
  192. package/dist-cms/packages/templating/scripts/workspace/manifests.d.ts +2 -0
  193. package/dist-cms/packages/templating/scripts/workspace/manifests.js +32 -0
  194. package/dist-cms/packages/templating/scripts/workspace/scripts-workspace-edit.element.d.ts +24 -0
  195. package/dist-cms/packages/templating/scripts/workspace/scripts-workspace-edit.element.js +171 -0
  196. package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.context.d.ts +23 -0
  197. package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.context.js +87 -0
  198. package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.element.d.ts +14 -0
  199. package/dist-cms/packages/templating/scripts/workspace/scripts-workspace.element.js +50 -0
  200. package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts +1 -1
  201. package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.js +1 -1
  202. package/dist-cms/packages/users/current-user/modals/current-user/current-user-modal.element.js +2 -2
  203. package/dist-cms/packages/users/user-groups/collection/user-group-collection-header.element.js +2 -2
  204. package/dist-cms/packages/users/user-groups/collection/user-group-collection-view.element.js +6 -6
  205. package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.js +15 -12
  206. package/dist-cms/packages/users/users/collection/user-collection-header.element.js +18 -11
  207. package/dist-cms/packages/users/users/collection/views/grid/user-collection-grid-view.element.js +6 -6
  208. package/dist-cms/packages/users/users/collection/views/table/column-layouts/status/user-table-status-column-layout.element.js +3 -3
  209. package/dist-cms/packages/users/users/index.d.ts +1 -0
  210. package/dist-cms/packages/users/users/index.js +1 -0
  211. package/dist-cms/packages/users/users/repository/index.d.ts +1 -0
  212. package/dist-cms/packages/users/users/repository/index.js +1 -0
  213. package/dist-cms/packages/users/users/workspace/user-workspace-editor.element.js +36 -35
  214. package/dist-cms/packages/users/utils.d.ts +5 -2
  215. package/dist-cms/packages/users/utils.js +14 -14
  216. package/dist-cms/shared/repository/data-source/folder-data-source.interface.d.ts +2 -2
  217. package/dist-cms/shared/repository/folder-repository.interface.d.ts +2 -2
  218. package/dist-cms/shared/router/index.d.ts +1 -1
  219. package/dist-cms/shared/router/index.js +1 -1
  220. package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
  221. package/dist-cms/vscode-html-custom-data.json +33 -23
  222. package/package.json +4 -4
  223. package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.d.ts +0 -9
  224. package/dist-cms/packages/core/modal/token/allowed-document-types-modal.token.js +0 -5
  225. package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.d.ts +0 -19
  226. package/dist-cms/packages/documents/document-types/modals/manifests.d.ts +0 -2
  227. package/dist-cms/packages/documents/document-types/modals/manifests.js +0 -9
  228. package/dist-cms/packages/settings/cultures/components/index.d.ts +0 -1
  229. package/dist-cms/packages/settings/cultures/components/index.js +0 -1
  230. package/dist-cms/packages/settings/cultures/manifests.d.ts +0 -1
  231. package/dist-cms/shared/context/index.d.ts +0 -1
  232. package/dist-cms/shared/context/index.js +0 -1
  233. package/router-slot-2.3.0.tgz +0 -0
  234. /package/dist-cms/{shared/context → apps/app}/app.context.d.ts +0 -0
  235. /package/dist-cms/{shared/context → apps/app}/app.context.js +0 -0
  236. /package/dist-cms/mocks/handlers/{document.handlers.d.ts → document/document.handlers.d.ts} +0 -0
  237. /package/dist-cms/packages/{settings/cultures → core/culture}/components/input-culture-select/input-culture-select.element.d.ts +0 -0
  238. /package/dist-cms/packages/{settings/cultures → core/culture}/manifests.js +0 -0
  239. /package/dist-cms/packages/{settings/cultures → core/culture}/repository/culture.repository.d.ts +0 -0
  240. /package/dist-cms/packages/{settings/cultures → core/culture}/repository/sources/culture.server.data.d.ts +0 -0
  241. /package/dist-cms/packages/{settings/cultures → core/culture}/repository/sources/culture.server.data.js +0 -0
  242. /package/dist-cms/packages/{settings/cultures → core/culture}/repository/sources/index.d.ts +0 -0
  243. /package/dist-cms/packages/{settings/cultures → core/culture}/repository/sources/index.js +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 '../data/document.data.js';
3
- import { umbracoPath } from '../../shared/utils/index.js';
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.post(umbracoPath('/document/trash'), async (req, res, ctx) => {
7
- console.warn('Please move to schema');
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.get(umbracoPath('/tree/document/children'), (req, res, ctx) => {
17
- const parentId = req.url.searchParams.get('parentId');
18
- if (!parentId)
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.getTreeItemChildren(parentId);
19
+ const response = umbDocumentData.getDocumentByIdAllowedDocumentTypes(id);
21
20
  return res(ctx.status(200), ctx.json(response));
22
21
  }),
23
- rest.get(umbracoPath('/tree/document/item'), (req, res, ctx) => {
24
- const ids = req.url.searchParams.getAll('id');
25
- if (!ids)
22
+ rest.get(umbracoPath('/document/:id'), (req, res, ctx) => {
23
+ const id = req.params.id;
24
+ if (!id)
26
25
  return;
27
- const items = umbDocumentData.getTreeItem(ids);
28
- return res(ctx.status(200), ctx.json(items));
26
+ const document = umbDocumentData.getById(id);
27
+ return res(ctx.status(200), ctx.json(document));
29
28
  }),
30
- rest.post(umbracoPath(`/document`), async (req, res, ctx) => {
31
- const data = await req.json();
32
- if (!data)
29
+ rest.delete(umbracoPath('/document/:id'), (req, res, ctx) => {
30
+ const id = req.params.id;
31
+ if (!id)
33
32
  return;
34
- umbDocumentData.insert(data);
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.get(umbracoPath('/document/root/allowed-document-types'), (req, res, ctx) => {
48
- const response = umbDocumentData.getAllowedDocumentTypesAtRoot();
49
- return res(ctx.status(200), ctx.json(response));
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
- const document = umbDocumentData.getById(id);
63
- return res(ctx.status(200), ctx.json(document));
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,2 @@
1
+ import { RestHandler, MockedRequest, DefaultBodyType } from 'msw';
2
+ export declare const handlers: RestHandler<MockedRequest<DefaultBodyType>>[];
@@ -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];
@@ -42,7 +42,7 @@ export class UmbInputListBaseElement extends UmbLitElement {
42
42
  }
43
43
  renderButton() {
44
44
  return html `<uui-button id="add-button" look="placeholder" @click=${this._openPicker} label="open">
45
- Add
45
+ ${this.localize.term('general_add')}
46
46
  </uui-button>`;
47
47
  }
48
48
  renderContent() {
@@ -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 Document Type (The specific one up for editing)
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.makeContainerNameUniqueForOwnerDocument(name, this._childType, containerParentId) ?? name;
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?.documentTypes;
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 documentTypes: import("rxjs").Observable<DocumentTypeResponseModel[]>;
10
- private readonly _documentTypeContainers;
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
- _observeDocumentType(data: T): Promise<void>;
31
- private _loadDocumentTypeCompositions;
30
+ _observeContentType(data: T): Promise<void>;
31
+ private _loadContentTypeCompositions;
32
32
  /** Public methods for consuming structure: */
33
- ownerDocumentType(): import("rxjs").Observable<DocumentTypeResponseModel | undefined>;
34
- getOwnerDocumentType(): DocumentTypeResponseModel | undefined;
35
- updateOwnerDocumentType(entry: T): void;
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
- makeContainerNameUniqueForOwnerDocument(newName: string, containerType?: PropertyContainerTypes, parentId?: string | null): string | null;
38
- updateContainer(documentTypeId: string | null, containerId: string, partialUpdate: Partial<PropertyTypeContainerModelBaseModel>): Promise<void>;
39
- removeContainer(documentTypeKey: string | null, containerId?: string | null): Promise<void>;
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(documentTypeId: string | null, containerId?: string | null, sortOrder?: number): Promise<PropertyTypeModelBaseModel>;
42
- insertProperty(documentTypeId: string | null, property: PropertyTypeModelBaseModel): Promise<void>;
43
- removeProperty(documentTypeId: string | null, propertyId: string): Promise<void>;
44
- updateProperty(documentTypeId: string | null, propertyId: string, partialUpdate: Partial<PropertyTypeModelBaseModel>): Promise<void>;
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
- ownerDocumentTypeObservablePart<PartResult>(mappingFunction: MappingFunction<T, PartResult>): import("rxjs").Observable<PartResult | undefined>;
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[]>;