@umbraco-cms/backoffice 14.0.0-626fae63 → 14.0.0-7a343e97

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 (405) hide show
  1. package/dist-cms/apps/backoffice/backoffice.element.js +1 -1
  2. package/dist-cms/apps/installer/error/installer-error.element.d.ts +2 -2
  3. package/dist-cms/apps/installer/installer.context.d.ts +6 -6
  4. package/dist-cms/apps/installer/installer.context.js +2 -2
  5. package/dist-cms/custom-elements.json +97 -96
  6. package/dist-cms/external/backend-api/index.js +1 -1
  7. package/dist-cms/external/monaco-editor/{abap-42d5eca7.js → abap-7ad4f8f0.js} +1 -1
  8. package/dist-cms/external/monaco-editor/{apex-051da044.js → apex-30597c49.js} +1 -1
  9. package/dist-cms/external/monaco-editor/{bundle.css → assets/bundle-a4f90d1d.css} +593 -279
  10. package/dist-cms/external/monaco-editor/{azcli-ad3d7346.js → azcli-67c34a04.js} +1 -1
  11. package/dist-cms/external/monaco-editor/{bat-0217c0bc.js → bat-b8f4738b.js} +1 -1
  12. package/dist-cms/external/monaco-editor/{bicep-0cadb30a.js → bicep-b104b38b.js} +1 -1
  13. package/dist-cms/external/monaco-editor/{cameligo-ac55f854.js → cameligo-001d1ded.js} +1 -1
  14. package/dist-cms/external/monaco-editor/{clojure-388a0d58.js → clojure-fa9652a1.js} +1 -1
  15. package/dist-cms/external/monaco-editor/{coffee-7e7a2971.js → coffee-b69a8315.js} +1 -1
  16. package/dist-cms/external/monaco-editor/{cpp-840d082a.js → cpp-8053752f.js} +1 -1
  17. package/dist-cms/external/monaco-editor/{csharp-b3429875.js → csharp-886041a3.js} +1 -1
  18. package/dist-cms/external/monaco-editor/{csp-83442b86.js → csp-e846bce6.js} +1 -1
  19. package/dist-cms/external/monaco-editor/{css-7a34b8c3.js → css-50032e5e.js} +1 -1
  20. package/dist-cms/external/monaco-editor/{cssMode-98237bd7.js → cssMode-c0406684.js} +3 -3
  21. package/dist-cms/external/monaco-editor/{cypher-cc9c23cc.js → cypher-6f93a845.js} +1 -1
  22. package/dist-cms/external/monaco-editor/{dart-00a58d1c.js → dart-14284236.js} +1 -1
  23. package/dist-cms/external/monaco-editor/{dockerfile-668ee825.js → dockerfile-e9935eb4.js} +1 -1
  24. package/dist-cms/external/monaco-editor/{ecl-b42ffd48.js → ecl-9c89f204.js} +1 -1
  25. package/dist-cms/external/monaco-editor/{elixir-b9ceca92.js → elixir-ca8bf661.js} +1 -1
  26. package/dist-cms/external/monaco-editor/{flow9-7e9b2e50.js → flow9-ac147227.js} +1 -1
  27. package/dist-cms/external/monaco-editor/{freemarker2-b9eee947.js → freemarker2-793b7402.js} +2 -2
  28. package/dist-cms/external/monaco-editor/{fsharp-cdc5b8f1.js → fsharp-8eaad024.js} +1 -1
  29. package/dist-cms/external/monaco-editor/{go-4c92fa5c.js → go-05529e2e.js} +1 -1
  30. package/dist-cms/external/monaco-editor/{graphql-67842079.js → graphql-8f5b3fdd.js} +1 -1
  31. package/dist-cms/external/monaco-editor/{handlebars-36a3f04f.js → handlebars-aaa2fd96.js} +2 -2
  32. package/dist-cms/external/monaco-editor/{hcl-59febf1c.js → hcl-9e201a51.js} +1 -1
  33. package/dist-cms/external/monaco-editor/{html-b0d38e59.js → html-1194c0aa.js} +2 -2
  34. package/dist-cms/external/monaco-editor/{htmlMode-b85c3f7d.js → htmlMode-36df69c6.js} +3 -3
  35. package/dist-cms/external/monaco-editor/{index-534fb84c.js → index-7368f3e3.js} +418 -409
  36. package/dist-cms/external/monaco-editor/index.js +1 -1
  37. package/dist-cms/external/monaco-editor/{ini-1cf2ce67.js → ini-31a5619d.js} +1 -1
  38. package/dist-cms/external/monaco-editor/{java-e4fb14c6.js → java-8c6e1ae8.js} +1 -1
  39. package/dist-cms/external/monaco-editor/javascript-86205709.js +6 -0
  40. package/dist-cms/external/monaco-editor/{jsonMode-fa2b41c8.js → jsonMode-f663e935.js} +6 -6
  41. package/dist-cms/external/monaco-editor/{julia-9b6c6458.js → julia-fbb2af47.js} +1 -1
  42. package/dist-cms/external/monaco-editor/{kotlin-b66c14ff.js → kotlin-bfa96180.js} +1 -1
  43. package/dist-cms/external/monaco-editor/{less-8dc8685d.js → less-0b6a8ff1.js} +1 -1
  44. package/dist-cms/external/monaco-editor/{lexon-59c0b911.js → lexon-585e5248.js} +1 -1
  45. package/dist-cms/external/monaco-editor/{liquid-be38812f.js → liquid-37adc07a.js} +2 -2
  46. package/dist-cms/external/monaco-editor/{lua-3f4d9098.js → lua-f6c17885.js} +1 -1
  47. package/dist-cms/external/monaco-editor/{m3-82a8c502.js → m3-1b6456c5.js} +1 -1
  48. package/dist-cms/external/monaco-editor/{markdown-07c3fa1e.js → markdown-7bc251f9.js} +1 -1
  49. package/dist-cms/external/monaco-editor/{mips-59ddf2f4.js → mips-2df76781.js} +1 -1
  50. package/dist-cms/external/monaco-editor/{msdax-12ec689c.js → msdax-8c38e8b4.js} +1 -1
  51. package/dist-cms/external/monaco-editor/{mysql-2958efa4.js → mysql-abbb9ca3.js} +1 -1
  52. package/dist-cms/external/monaco-editor/{objective-c-08d94025.js → objective-c-efbfd08b.js} +1 -1
  53. package/dist-cms/external/monaco-editor/{pascal-b686b438.js → pascal-08abee72.js} +1 -1
  54. package/dist-cms/external/monaco-editor/{pascaligo-96457e5f.js → pascaligo-200db0cf.js} +1 -1
  55. package/dist-cms/external/monaco-editor/{perl-b938bdad.js → perl-079789ee.js} +1 -1
  56. package/dist-cms/external/monaco-editor/{pgsql-42970e97.js → pgsql-efd093d4.js} +1 -1
  57. package/dist-cms/external/monaco-editor/{php-7476401f.js → php-75c530f2.js} +1 -1
  58. package/dist-cms/external/monaco-editor/{pla-aaf0caa2.js → pla-a55a2765.js} +1 -1
  59. package/dist-cms/external/monaco-editor/{postiats-759ff404.js → postiats-6098f37b.js} +1 -1
  60. package/dist-cms/external/monaco-editor/{powerquery-a33a8de4.js → powerquery-949bb7fe.js} +1 -1
  61. package/dist-cms/external/monaco-editor/{powershell-ec154f36.js → powershell-7e550b21.js} +1 -1
  62. package/dist-cms/external/monaco-editor/{protobuf-e42d83dc.js → protobuf-25a4d695.js} +1 -1
  63. package/dist-cms/external/monaco-editor/{pug-04b2d67c.js → pug-f8c9f493.js} +1 -1
  64. package/dist-cms/external/monaco-editor/{python-b3b058ea.js → python-78a47148.js} +2 -2
  65. package/dist-cms/external/monaco-editor/{qsharp-5376e9d1.js → qsharp-c4b94317.js} +1 -1
  66. package/dist-cms/external/monaco-editor/{r-d212ba98.js → r-614353db.js} +1 -1
  67. package/dist-cms/external/monaco-editor/{razor-911a705a.js → razor-5de9ce12.js} +2 -2
  68. package/dist-cms/external/monaco-editor/{redis-51e44009.js → redis-fb089f4d.js} +1 -1
  69. package/dist-cms/external/monaco-editor/{redshift-8de2cfdc.js → redshift-a620fcb0.js} +1 -1
  70. package/dist-cms/external/monaco-editor/{restructuredtext-3f99254a.js → restructuredtext-7ab09fcf.js} +1 -1
  71. package/dist-cms/external/monaco-editor/{ruby-64a73e64.js → ruby-922be722.js} +1 -1
  72. package/dist-cms/external/monaco-editor/{rust-2a0390f1.js → rust-23e08578.js} +1 -1
  73. package/dist-cms/external/monaco-editor/{sb-4d8fa557.js → sb-ccceec0f.js} +1 -1
  74. package/dist-cms/external/monaco-editor/{scala-00d62260.js → scala-0535664d.js} +1 -1
  75. package/dist-cms/external/monaco-editor/{scheme-a0903f29.js → scheme-dba621eb.js} +1 -1
  76. package/dist-cms/external/monaco-editor/{scss-3e25f7ad.js → scss-28539a11.js} +1 -1
  77. package/dist-cms/external/monaco-editor/{shell-9c442847.js → shell-5b92a834.js} +1 -1
  78. package/dist-cms/external/monaco-editor/{solidity-6b3049ed.js → solidity-f63d6049.js} +1 -1
  79. package/dist-cms/external/monaco-editor/{sophia-f4a2b303.js → sophia-12e9ad90.js} +1 -1
  80. package/dist-cms/external/monaco-editor/{sparql-1d37a384.js → sparql-dedb74aa.js} +1 -1
  81. package/dist-cms/external/monaco-editor/{sql-946641be.js → sql-975a69d7.js} +1 -1
  82. package/dist-cms/external/monaco-editor/{st-9220dec1.js → st-1904ae33.js} +1 -1
  83. package/dist-cms/external/monaco-editor/{swift-06592b81.js → swift-e180a143.js} +1 -1
  84. package/dist-cms/external/monaco-editor/{systemverilog-b5ba493c.js → systemverilog-c5592fac.js} +1 -1
  85. package/dist-cms/external/monaco-editor/{tcl-3fe51e69.js → tcl-996f4ac7.js} +1 -1
  86. package/dist-cms/external/monaco-editor/tsMode-f4618e87.js +16 -0
  87. package/dist-cms/external/monaco-editor/{twig-ee0f3b03.js → twig-4859b551.js} +1 -1
  88. package/dist-cms/external/monaco-editor/{typescript-4d577e09.js → typescript-efea739f.js} +3 -3
  89. package/dist-cms/external/monaco-editor/{vb-e7e59935.js → vb-ad68fa9a.js} +1 -1
  90. package/dist-cms/external/monaco-editor/wgsl-5ee7b1ca.js +303 -0
  91. package/dist-cms/external/monaco-editor/{xml-b05159d9.js → xml-12b9ace3.js} +2 -2
  92. package/dist-cms/external/monaco-editor/{yaml-b4ec85f0.js → yaml-65e08cff.js} +3 -3
  93. package/dist-cms/external/rxjs/index.js +2 -2
  94. package/dist-cms/external/tinymce/index.js +16 -16
  95. package/dist-cms/libs/class-api/class.mixin.js +1 -1
  96. package/dist-cms/mocks/data/data-type.data.js +0 -40
  97. package/dist-cms/mocks/data/dictionary.data.js +0 -6
  98. package/dist-cms/mocks/data/document-type.data.d.ts +2 -0
  99. package/dist-cms/mocks/data/document-type.data.js +4 -6
  100. package/dist-cms/mocks/data/document.data.d.ts +3 -1
  101. package/dist-cms/mocks/data/document.data.js +18 -68
  102. package/dist-cms/mocks/data/media-type.data.d.ts +3 -3
  103. package/dist-cms/mocks/data/media-type.data.js +0 -4
  104. package/dist-cms/mocks/data/media.data.d.ts +3 -3
  105. package/dist-cms/mocks/data/media.data.js +0 -16
  106. package/dist-cms/mocks/data/member-group.data.js +0 -2
  107. package/dist-cms/mocks/data/member-type.data.js +0 -2
  108. package/dist-cms/mocks/data/member.data.js +0 -2
  109. package/dist-cms/mocks/data/partial-views.data.d.ts +19 -3
  110. package/dist-cms/mocks/data/partial-views.data.js +277 -18
  111. package/dist-cms/mocks/data/relation-type.data.js +0 -10
  112. package/dist-cms/mocks/data/stylesheet.data.js +0 -4
  113. package/dist-cms/mocks/data/template.data.d.ts +0 -1
  114. package/dist-cms/mocks/data/template.data.js +0 -10
  115. package/dist-cms/mocks/data/user-groups.data.js +0 -1
  116. package/dist-cms/mocks/data/users.data.js +0 -6
  117. package/dist-cms/mocks/data/utils.d.ts +2 -1
  118. package/dist-cms/mocks/data/utils.js +5 -5
  119. package/dist-cms/mocks/handlers/dictionary.handlers.js +0 -2
  120. package/dist-cms/mocks/handlers/document.handlers.js +15 -4
  121. package/dist-cms/mocks/handlers/partial-views.handlers.d.ts +2 -1
  122. package/dist-cms/mocks/handlers/partial-views.handlers.js +37 -5
  123. package/dist-cms/packages/core/collection/collection-selection-actions.element.d.ts +1 -1
  124. package/dist-cms/packages/core/components/input-checkbox-list/input-checkbox-list.element.d.ts +1 -1
  125. package/dist-cms/packages/core/components/input-radio-button-list/input-radio-button-list.element.d.ts +1 -1
  126. package/dist-cms/packages/core/components/input-tiny-mce/input-tiny-mce.handlers.js +1 -1
  127. package/dist-cms/packages/core/debug/debug.element.d.ts +1 -1
  128. package/dist-cms/packages/core/entity-action/common/create-folder/create-folder.action.d.ts +8 -0
  129. package/dist-cms/packages/core/entity-action/common/create-folder/create-folder.action.js +21 -0
  130. package/dist-cms/packages/core/entity-action/common/index.d.ts +1 -0
  131. package/dist-cms/packages/core/entity-action/common/index.js +1 -0
  132. package/dist-cms/packages/core/modal/common/folder/folder-modal.element.js +4 -1
  133. package/dist-cms/packages/core/modal/token/embedded-media-modal.token.js +0 -1
  134. package/dist-cms/packages/core/modal/token/folder-modal.token.d.ts +1 -0
  135. package/dist-cms/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.js +0 -1
  136. package/dist-cms/packages/core/tree/entity-tree-item/entity-tree-item.element.d.ts +1 -1
  137. package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.context.d.ts +9 -1
  138. package/dist-cms/packages/core/tree/file-system-tree-item/file-system-tree-item.context.js +28 -0
  139. package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.element.d.ts +11 -3
  140. package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.element.js +10 -1
  141. package/dist-cms/packages/core/tree/file-system-tree-item/index.d.ts +2 -0
  142. package/dist-cms/packages/core/tree/file-system-tree-item/index.js +2 -0
  143. package/dist-cms/packages/core/tree/index.d.ts +1 -0
  144. package/dist-cms/packages/core/tree/index.js +1 -0
  145. package/dist-cms/packages/core/tree/tree-item/tree-item.context.interface.d.ts +2 -2
  146. package/dist-cms/packages/core/tree/tree-item/tree-item.element.d.ts +1 -1
  147. package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.context.d.ts +1 -1
  148. package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.element.d.ts +1 -0
  149. package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.element.js +6 -3
  150. package/dist-cms/packages/core/tree/tree-menu-item/tree-menu-item.element.d.ts +1 -1
  151. package/dist-cms/packages/core/tree/tree.context.d.ts +5 -5
  152. package/dist-cms/packages/core/workspace/index.d.ts +6 -5
  153. package/dist-cms/packages/core/workspace/index.js +6 -5
  154. package/dist-cms/packages/core/workspace/workspace-action/workspace-action.element.js +12 -4
  155. package/dist-cms/packages/core/workspace/workspace-context/workspace-context.d.ts +3 -3
  156. package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/index.d.ts +1 -0
  157. package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/index.js +1 -0
  158. package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/workspace-is-new-redirect-controller.d.ts +16 -0
  159. package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/workspace-is-new-redirect-controller.js +31 -0
  160. package/dist-cms/packages/core/workspace/workspace.element.d.ts +1 -1
  161. package/dist-cms/packages/{translation → dictionary}/dashboards/dictionary/dashboard-translation-dictionary.element.js +0 -1
  162. package/dist-cms/packages/dictionary/dictionary/index.d.ts +1 -0
  163. package/dist-cms/packages/dictionary/dictionary/index.js +1 -0
  164. package/dist-cms/packages/dictionary/dictionary/repository/index.d.ts +3 -0
  165. package/dist-cms/packages/dictionary/dictionary/repository/index.js +3 -0
  166. package/dist-cms/packages/{translation → dictionary}/dictionary/repository/manifests.js +1 -1
  167. package/dist-cms/packages/{translation → dictionary}/section.manifest.js +4 -4
  168. package/dist-cms/packages/{translation → dictionary}/umbraco-package.d.ts +1 -1
  169. package/dist-cms/packages/dictionary/umbraco-package.js +9 -0
  170. package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.d.ts +1 -1
  171. package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.js +12 -23
  172. package/dist-cms/packages/documents/document-types/repository/document-type.repository.d.ts +2 -11
  173. package/dist-cms/packages/documents/document-types/repository/document-type.repository.js +1 -2
  174. package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.d.ts +1 -7
  175. package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.js +0 -4
  176. package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.element.js +3 -22
  177. package/dist-cms/packages/documents/documents/collection/views/table/document-table-collection-view.element.js +0 -1
  178. package/dist-cms/packages/documents/documents/repository/document.repository.d.ts +2 -0
  179. package/dist-cms/packages/documents/documents/repository/document.repository.js +10 -0
  180. package/dist-cms/packages/documents/documents/repository/sources/document.server.data.d.ts +14 -0
  181. package/dist-cms/packages/documents/documents/repository/sources/document.server.data.js +25 -5
  182. package/dist-cms/packages/documents/documents/tree/tree-item/document-tree-item.element.d.ts +1 -1
  183. package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.d.ts +1 -1
  184. package/dist-cms/packages/documents/documents/workspace/document-workspace.context.d.ts +2 -2
  185. package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +1 -1
  186. package/dist-cms/packages/documents/documents/workspace/document-workspace.element.js +2 -0
  187. package/dist-cms/packages/media/media/collection-view/media-table-collection-view.element.js +0 -1
  188. package/dist-cms/packages/media/media/repository/sources/media.tree.server.data.d.ts +3 -3
  189. package/dist-cms/packages/media/media/workspace/media-workspace-editor.element.d.ts +1 -1
  190. package/dist-cms/packages/media/media-types/repository/sources/media-type.tree.server.data.d.ts +2 -2
  191. package/dist-cms/packages/members/members/repository/sources/member.tree.server.data.js +1 -1
  192. package/dist-cms/packages/search/examine-management-dashboard/views/modal-views/fields-viewer.element.d.ts +1 -1
  193. package/dist-cms/packages/settings/dashboards/health-check/views/health-check-group.element.d.ts +1 -1
  194. package/dist-cms/packages/settings/dashboards/published-status/dashboard-published-status.element.js +11 -3
  195. package/dist-cms/packages/settings/data-types/modals/data-type-picker-flow/data-type-picker-flow-data-type-picker-modal.element.js +1 -1
  196. package/dist-cms/packages/settings/data-types/modals/data-type-picker-flow/data-type-picker-flow-modal.element.js +2 -2
  197. package/dist-cms/packages/settings/data-types/models.d.ts +1 -1
  198. package/dist-cms/packages/settings/data-types/repository/data-type.repository.js +0 -1
  199. package/dist-cms/packages/settings/data-types/repository/sources/data-type-folder.server.data.js +0 -1
  200. package/dist-cms/packages/settings/data-types/repository/sources/data-type.tree.server.data.d.ts +2 -2
  201. package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.element.js +2 -0
  202. package/dist-cms/packages/settings/languages/workspace/language/language-workspace.element.js +3 -20
  203. package/dist-cms/packages/settings/languages/workspace/language-root/components/language-root-table-delete-column-layout.element.d.ts +1 -1
  204. package/dist-cms/packages/settings/languages/workspace/language-root/components/language-root-table-name-column-layout.element.d.ts +1 -1
  205. package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.element.js +2 -0
  206. package/dist-cms/packages/templating/components/index.d.ts +0 -1
  207. package/dist-cms/packages/templating/components/index.js +0 -1
  208. package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js +1 -1
  209. package/dist-cms/packages/templating/manifests.d.ts +6 -1
  210. package/dist-cms/packages/templating/partial-views/config.d.ts +5 -5
  211. package/dist-cms/packages/templating/partial-views/config.js +3 -1
  212. package/dist-cms/packages/templating/partial-views/entity-actions/create/create-empty.action.js +1 -1
  213. package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.action.d.ts +10 -1
  214. package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.action.js +16 -1
  215. package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.modal.d.ts +16 -0
  216. package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.modal.js +73 -0
  217. package/dist-cms/packages/templating/partial-views/entity-actions/manifests.d.ts +6 -1
  218. package/dist-cms/packages/templating/partial-views/entity-actions/manifests.js +43 -5
  219. package/dist-cms/packages/templating/partial-views/manifests.d.ts +6 -1
  220. package/dist-cms/packages/templating/partial-views/repository/manifests.js +2 -2
  221. package/dist-cms/packages/templating/partial-views/repository/partial-views.repository.d.ts +51 -30
  222. package/dist-cms/packages/templating/partial-views/repository/partial-views.repository.js +81 -24
  223. package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.detail.server.data.d.ts +48 -13
  224. package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.detail.server.data.js +56 -17
  225. package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.folder.server.data.d.ts +17 -0
  226. package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.folder.server.data.js +23 -0
  227. package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.tree.server.data.d.ts +3 -3
  228. package/dist-cms/packages/templating/partial-views/tree/manifests.js +3 -2
  229. package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.d.ts +6 -1
  230. package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.js +123 -27
  231. package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.d.ts +9 -7
  232. package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.js +51 -10
  233. package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.d.ts +1 -0
  234. package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.js +10 -12
  235. package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.element.js +2 -0
  236. package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js +2 -2
  237. package/dist-cms/packages/templating/templates/repository/template.repository.js +1 -1
  238. package/dist-cms/packages/templating/templates/workspace/template-workspace.context.js +4 -4
  239. package/dist-cms/packages/templating/templates/workspace/template-workspace.element.js +3 -7
  240. package/dist-cms/packages/umbraco-news/umbraco-news-dashboard.element.js +8 -4
  241. package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.d.ts +1 -1
  242. package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.element.js +2 -0
  243. package/dist-cms/packages/users/users/repository/sources/user-collection.server.data.d.ts +0 -7
  244. package/dist-cms/packages/users/users/repository/sources/user.server.data.d.ts +0 -1
  245. package/dist-cms/shared/repository/data-source/data-source.interface.d.ts +2 -2
  246. package/dist-cms/shared/repository/data-source/extend-data-source-paged-response-data.function.d.ts +1 -1
  247. package/dist-cms/shared/repository/data-source/extend-data-source-response-data.function.d.ts +1 -1
  248. package/dist-cms/shared/repository/detail-repository.interface.d.ts +2 -2
  249. package/dist-cms/shared/repository/folder-repository.interface.d.ts +6 -6
  250. package/dist-cms/shared/repository/item-repository.interface.d.ts +2 -2
  251. package/dist-cms/shared/repository/tree-repository.interface.d.ts +6 -6
  252. package/dist-cms/shared/resources/resource.controller.js +1 -1
  253. package/dist-cms/shared/router/generate-route-path-builder.function.d.ts +1 -1
  254. package/dist-cms/shared/router/generate-route-path-builder.function.js +1 -1
  255. package/dist-cms/shared/router/route.context.js +8 -8
  256. package/dist-cms/shared/utils/ensure-path-ends-with-slash.function.d.ts +1 -0
  257. package/dist-cms/shared/utils/ensure-path-ends-with-slash.function.js +3 -0
  258. package/dist-cms/shared/utils/index.d.ts +1 -0
  259. package/dist-cms/shared/utils/index.js +1 -0
  260. package/dist-cms/shared/utils/media-helper.service.d.ts +1 -1
  261. package/dist-cms/shared/utils/media-helper.service.js +1 -1
  262. package/dist-cms/tinymce/CHANGELOG.md +22 -0
  263. package/dist-cms/tinymce/composer.json +1 -1
  264. package/dist-cms/tinymce/icons/default/icons.js +3 -0
  265. package/dist-cms/tinymce/icons/default/icons.min.js +1 -1
  266. package/dist-cms/tinymce/langs/ar.js +1 -1
  267. package/dist-cms/tinymce/langs/bg_BG.js +56 -56
  268. package/dist-cms/tinymce/langs/fr_FR.js +1 -1
  269. package/dist-cms/tinymce/langs/ka_GE.js +406 -0
  270. package/dist-cms/tinymce/langs/nb_NO.js +15 -15
  271. package/dist-cms/tinymce/models/dom/model.js +1 -1
  272. package/dist-cms/tinymce/models/dom/model.min.js +1 -1
  273. package/dist-cms/tinymce/package.json +1 -1
  274. package/dist-cms/tinymce/plugins/accordion/plugin.js +1 -1
  275. package/dist-cms/tinymce/plugins/accordion/plugin.min.js +1 -1
  276. package/dist-cms/tinymce/plugins/advlist/plugin.js +1 -1
  277. package/dist-cms/tinymce/plugins/advlist/plugin.min.js +1 -1
  278. package/dist-cms/tinymce/plugins/anchor/plugin.js +1 -1
  279. package/dist-cms/tinymce/plugins/anchor/plugin.min.js +1 -1
  280. package/dist-cms/tinymce/plugins/autolink/plugin.js +1 -1
  281. package/dist-cms/tinymce/plugins/autolink/plugin.min.js +1 -1
  282. package/dist-cms/tinymce/plugins/autoresize/plugin.js +1 -1
  283. package/dist-cms/tinymce/plugins/autoresize/plugin.min.js +1 -1
  284. package/dist-cms/tinymce/plugins/autosave/plugin.js +1 -1
  285. package/dist-cms/tinymce/plugins/autosave/plugin.min.js +1 -1
  286. package/dist-cms/tinymce/plugins/charmap/plugin.js +1 -1
  287. package/dist-cms/tinymce/plugins/charmap/plugin.min.js +1 -1
  288. package/dist-cms/tinymce/plugins/code/plugin.js +1 -1
  289. package/dist-cms/tinymce/plugins/code/plugin.min.js +1 -1
  290. package/dist-cms/tinymce/plugins/codesample/plugin.js +1 -1
  291. package/dist-cms/tinymce/plugins/codesample/plugin.min.js +1 -1
  292. package/dist-cms/tinymce/plugins/directionality/plugin.js +1 -1
  293. package/dist-cms/tinymce/plugins/directionality/plugin.min.js +1 -1
  294. package/dist-cms/tinymce/plugins/emoticons/plugin.js +1 -1
  295. package/dist-cms/tinymce/plugins/emoticons/plugin.min.js +1 -1
  296. package/dist-cms/tinymce/plugins/fullscreen/plugin.js +1 -1
  297. package/dist-cms/tinymce/plugins/fullscreen/plugin.min.js +1 -1
  298. package/dist-cms/tinymce/plugins/help/plugin.js +6 -1
  299. package/dist-cms/tinymce/plugins/help/plugin.min.js +2 -2
  300. package/dist-cms/tinymce/plugins/image/plugin.js +1 -1
  301. package/dist-cms/tinymce/plugins/image/plugin.min.js +1 -1
  302. package/dist-cms/tinymce/plugins/importcss/plugin.js +1 -1
  303. package/dist-cms/tinymce/plugins/importcss/plugin.min.js +1 -1
  304. package/dist-cms/tinymce/plugins/insertdatetime/plugin.js +1 -1
  305. package/dist-cms/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
  306. package/dist-cms/tinymce/plugins/link/plugin.js +1 -1
  307. package/dist-cms/tinymce/plugins/link/plugin.min.js +1 -1
  308. package/dist-cms/tinymce/plugins/lists/plugin.js +1 -1
  309. package/dist-cms/tinymce/plugins/lists/plugin.min.js +1 -1
  310. package/dist-cms/tinymce/plugins/media/plugin.js +1 -1
  311. package/dist-cms/tinymce/plugins/media/plugin.min.js +1 -1
  312. package/dist-cms/tinymce/plugins/nonbreaking/plugin.js +1 -1
  313. package/dist-cms/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
  314. package/dist-cms/tinymce/plugins/pagebreak/plugin.js +1 -1
  315. package/dist-cms/tinymce/plugins/pagebreak/plugin.min.js +1 -1
  316. package/dist-cms/tinymce/plugins/preview/plugin.js +1 -1
  317. package/dist-cms/tinymce/plugins/preview/plugin.min.js +1 -1
  318. package/dist-cms/tinymce/plugins/quickbars/plugin.js +1 -1
  319. package/dist-cms/tinymce/plugins/quickbars/plugin.min.js +1 -1
  320. package/dist-cms/tinymce/plugins/save/plugin.js +1 -1
  321. package/dist-cms/tinymce/plugins/save/plugin.min.js +1 -1
  322. package/dist-cms/tinymce/plugins/searchreplace/plugin.js +1 -1
  323. package/dist-cms/tinymce/plugins/searchreplace/plugin.min.js +1 -1
  324. package/dist-cms/tinymce/plugins/table/plugin.js +1 -1
  325. package/dist-cms/tinymce/plugins/table/plugin.min.js +1 -1
  326. package/dist-cms/tinymce/plugins/template/plugin.js +1 -1
  327. package/dist-cms/tinymce/plugins/template/plugin.min.js +1 -1
  328. package/dist-cms/tinymce/plugins/visualblocks/plugin.js +1 -1
  329. package/dist-cms/tinymce/plugins/visualblocks/plugin.min.js +1 -1
  330. package/dist-cms/tinymce/plugins/visualchars/plugin.js +1 -1
  331. package/dist-cms/tinymce/plugins/visualchars/plugin.min.js +1 -1
  332. package/dist-cms/tinymce/plugins/wordcount/plugin.js +1 -1
  333. package/dist-cms/tinymce/plugins/wordcount/plugin.min.js +1 -1
  334. package/dist-cms/tinymce/skins/ui/oxide/skin.css +18 -0
  335. package/dist-cms/tinymce/skins/ui/oxide/skin.min.css +1 -1
  336. package/dist-cms/tinymce/skins/ui/oxide-dark/skin.css +18 -0
  337. package/dist-cms/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
  338. package/dist-cms/tinymce/skins/ui/tinymce-5/skin.css +18 -0
  339. package/dist-cms/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
  340. package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.css +18 -0
  341. package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
  342. package/dist-cms/tinymce/themes/silver/theme.js +279 -85
  343. package/dist-cms/tinymce/themes/silver/theme.min.js +2 -2
  344. package/dist-cms/tinymce/tinymce.d.ts +7 -2
  345. package/dist-cms/tinymce/tinymce.js +3 -3
  346. package/dist-cms/tinymce/tinymce.min.js +2 -2
  347. package/dist-cms/tsconfig.tsbuildinfo +1 -1
  348. package/dist-cms/umbraco-package-schema.json +40 -120
  349. package/dist-cms/vscode-html-custom-data.json +46 -46
  350. package/package.json +25 -25
  351. package/dist-cms/external/monaco-editor/javascript-53ce59fc.js +0 -6
  352. package/dist-cms/external/monaco-editor/tsMode-3f4e7f54.js +0 -16
  353. package/dist-cms/packages/templating/components/file-system-tree-item/file-system-tree-item.context.js +0 -10
  354. package/dist-cms/packages/translation/umbraco-package.js +0 -9
  355. /package/dist-cms/packages/{translation → dictionary}/dashboards/dictionary/dashboard-translation-dictionary.element.d.ts +0 -0
  356. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create-dictionary-modal.element.d.ts +0 -0
  357. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create-dictionary-modal.element.js +0 -0
  358. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create.action.d.ts +0 -0
  359. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create.action.js +0 -0
  360. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export-dictionary-modal.element.d.ts +0 -0
  361. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export-dictionary-modal.element.js +0 -0
  362. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export.action.d.ts +0 -0
  363. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export.action.js +0 -0
  364. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import-dictionary-modal.element.d.ts +0 -0
  365. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import-dictionary-modal.element.js +0 -0
  366. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import.action.d.ts +0 -0
  367. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import.action.js +0 -0
  368. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/manifests.d.ts +0 -0
  369. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/manifests.js +0 -0
  370. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/reload.action.d.ts +0 -0
  371. /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/reload.action.js +0 -0
  372. /package/dist-cms/packages/{translation → dictionary}/dictionary/manifests.d.ts +0 -0
  373. /package/dist-cms/packages/{translation → dictionary}/dictionary/manifests.js +0 -0
  374. /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/dictionary-menu-item.element.d.ts +0 -0
  375. /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/dictionary-menu-item.element.js +0 -0
  376. /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/manifests.d.ts +0 -0
  377. /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/manifests.js +0 -0
  378. /package/dist-cms/packages/{translation → dictionary}/dictionary/menu.manifests.d.ts +0 -0
  379. /package/dist-cms/packages/{translation → dictionary}/dictionary/menu.manifests.js +0 -0
  380. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.repository.d.ts +0 -0
  381. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.repository.js +0 -0
  382. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.store.d.ts +0 -0
  383. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.store.js +0 -0
  384. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.tree.store.d.ts +0 -0
  385. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.tree.store.js +0 -0
  386. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/manifests.d.ts +0 -0
  387. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.detail.server.data.d.ts +0 -0
  388. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.detail.server.data.js +0 -0
  389. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.tree.server.data.d.ts +0 -0
  390. /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.tree.server.data.js +0 -0
  391. /package/dist-cms/packages/{translation → dictionary}/dictionary/tree/manifests.d.ts +0 -0
  392. /package/dist-cms/packages/{translation → dictionary}/dictionary/tree/manifests.js +0 -0
  393. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace-editor.element.d.ts +0 -0
  394. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace-editor.element.js +0 -0
  395. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.context.d.ts +0 -0
  396. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.context.js +0 -0
  397. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.element.d.ts +0 -0
  398. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.element.js +0 -0
  399. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/manifests.d.ts +0 -0
  400. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/manifests.js +0 -0
  401. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.d.ts +0 -0
  402. /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.js +0 -0
  403. /package/dist-cms/packages/{translation → dictionary}/manifests.d.ts +0 -0
  404. /package/dist-cms/packages/{translation → dictionary}/manifests.js +0 -0
  405. /package/dist-cms/packages/{translation → dictionary}/section.manifest.d.ts +0 -0
@@ -1,54 +1,75 @@
1
+ import { PartialViewGetFolderResponse } from './sources/partial-views.folder.server.data.js';
1
2
  import { Observable } from '../../../../external/rxjs/index.js';
2
3
  import { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
3
- import { ProblemDetailsModel } from '../../../../external/backend-api/index.js';
4
- import { UmbDetailRepository, UmbTreeRepository } from '../../../../shared/repository/index.js';
5
- import { UmbTreeRootEntityModel } from '../../../core/tree/index.js';
6
- export declare class UmbTemplateRepository implements UmbTreeRepository<any>, UmbDetailRepository<any> {
4
+ import { CreateFolderRequestModel, CreatePartialViewRequestModel, FileSystemTreeItemPresentationModel, FolderModelBaseModel, FolderReponseModel, PagedSnippetItemResponseModel, PartialViewItemResponseModel, PartialViewResponseModel, ProblemDetails, TextFileResponseModelBaseModel, UpdatePartialViewRequestModel } from '../../../../external/backend-api/index.js';
5
+ import { DataSourceResponse, UmbDataSourceErrorResponse, UmbDetailRepository, UmbFolderRepository, UmbTreeRepository } from '../../../../shared/repository/index.js';
6
+ export declare class UmbPartialViewsRepository implements UmbTreeRepository<FileSystemTreeItemPresentationModel>, UmbDetailRepository<CreatePartialViewRequestModel, string, UpdatePartialViewRequestModel, PartialViewResponseModel, string>, UmbFolderRepository {
7
7
  #private;
8
8
  constructor(host: UmbControllerHostElement);
9
+ createFolderScaffold(parentId: string | null): Promise<{
10
+ data?: FolderReponseModel | undefined;
11
+ error?: ProblemDetails | undefined;
12
+ }>;
13
+ createFolder(requestBody: CreateFolderRequestModel): Promise<{
14
+ data?: string | undefined;
15
+ error?: ProblemDetails | undefined;
16
+ }>;
17
+ requestFolder(unique: string): Promise<{
18
+ data?: PartialViewGetFolderResponse | undefined;
19
+ error?: ProblemDetails | undefined;
20
+ }>;
21
+ updateFolder(unique: string, folder: FolderModelBaseModel): Promise<{
22
+ data?: FolderModelBaseModel | undefined;
23
+ error?: ProblemDetails | undefined;
24
+ }>;
25
+ deleteFolder(path: string): Promise<{
26
+ error?: ProblemDetails | undefined;
27
+ }>;
9
28
  requestTreeRoot(): Promise<{
10
- data?: UmbTreeRootEntityModel | undefined;
11
- error?: ProblemDetailsModel | undefined;
12
- }>;
13
- requestItemsLegacy?: ((uniques: string[]) => Promise<{
14
- data?: any[] | undefined;
15
- error?: ProblemDetailsModel | undefined;
16
- asObservable?: (() => Observable<any[]>) | undefined;
17
- }>) | undefined;
18
- itemsLegacy?: ((uniques: string[]) => Promise<Observable<any[]>>) | undefined;
19
- byId(id: string): Promise<Observable<any>>;
20
- requestById(id: string): Promise<{
21
- data?: any;
22
- error?: ProblemDetailsModel | undefined;
29
+ data: {
30
+ id: null;
31
+ path: null;
32
+ type: string;
33
+ name: string;
34
+ icon: string;
35
+ hasChildren: boolean;
36
+ };
23
37
  }>;
24
38
  requestRootTreeItems(): Promise<{
25
39
  data: import("../../../../external/backend-api/index.js").PagedFileSystemTreeItemPresentationModel | undefined;
26
40
  error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
27
- asObservable: () => Observable<import("../../../../external/backend-api/index.js").FileSystemTreeItemPresentationModel[]>;
41
+ asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
28
42
  }>;
29
43
  requestTreeItemsOf(path: string | null): Promise<{
30
44
  data: any;
31
45
  error: any;
32
- asObservable: () => Observable<import("../../../../external/backend-api/index.js").FileSystemTreeItemPresentationModel[]>;
46
+ asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
33
47
  }>;
34
48
  requestTreeItems(keys: Array<string>): Promise<{
35
49
  data: undefined;
36
- error: ProblemDetailsModel;
50
+ error: ProblemDetails;
37
51
  asObservable?: undefined;
38
52
  } | {
39
53
  data: any;
40
54
  error: any;
41
- asObservable: () => Observable<import("../../../../external/backend-api/index.js").FileSystemTreeItemPresentationModel[]>;
55
+ asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
42
56
  }>;
43
- rootTreeItems(): Promise<Observable<import("../../../../external/backend-api/index.js").FileSystemTreeItemPresentationModel[]>>;
44
- treeItemsOf(parentPath: string | null): Promise<Observable<import("../../../../external/backend-api/index.js").FileSystemTreeItemPresentationModel[]>>;
45
- treeItems(paths: Array<string>): Promise<Observable<import("../../../../external/backend-api/index.js").FileSystemTreeItemPresentationModel[]>>;
57
+ rootTreeItems(): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
58
+ treeItemsOf(parentPath: string | null): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
59
+ treeItems(paths: Array<string>): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
46
60
  requestByKey(path: string): Promise<{
47
- data: undefined;
48
- error: undefined;
61
+ data: TextFileResponseModelBaseModel | undefined;
62
+ error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
49
63
  }>;
50
- createScaffold(parentKey: string | null): Promise<never>;
51
- create(patrial: any): Promise<never>;
52
- save(patrial: any): Promise<never>;
53
- delete(key: string): Promise<never>;
64
+ requestById(id: string): Promise<DataSourceResponse<any>>;
65
+ byId(id: string): Promise<Observable<any>>;
66
+ createScaffold(parentId: string | null, preset: string): Promise<DataSourceResponse<TextFileResponseModelBaseModel>>;
67
+ create(data: CreatePartialViewRequestModel): Promise<DataSourceResponse<any>>;
68
+ save(id: string, requestBody: UpdatePartialViewRequestModel): Promise<UmbDataSourceErrorResponse>;
69
+ delete(id: string): Promise<UmbDataSourceErrorResponse>;
70
+ getSnippets({ skip, take }: {
71
+ skip?: number | undefined;
72
+ take?: number | undefined;
73
+ }): Promise<DataSourceResponse<PagedSnippetItemResponseModel>>;
74
+ requestItems(keys: Array<string>): Promise<DataSourceResponse<PartialViewItemResponseModel[]>>;
54
75
  }
@@ -1,37 +1,75 @@
1
+ import { PARTIAL_VIEW_ROOT_ENTITY_TYPE } from '../config.js';
1
2
  import { UmbPartialViewDetailServerDataSource } from './sources/partial-views.detail.server.data.js';
2
3
  import { UmbPartialViewsTreeServerDataSource } from './sources/partial-views.tree.server.data.js';
3
4
  import { UMB_PARTIAL_VIEW_TREE_STORE_CONTEXT_TOKEN } from './partial-views.tree.store.js';
5
+ import { UmbPartialViewsFolderServerDataSource, } from './sources/partial-views.folder.server.data.js';
4
6
  import { UmbContextConsumerController } from '../../../../libs/context-api/index.js';
5
- export class UmbTemplateRepository {
7
+ export class UmbPartialViewsRepository {
6
8
  #init;
7
9
  #host;
8
10
  #treeDataSource;
9
11
  #detailDataSource;
12
+ #folderDataSource;
10
13
  #treeStore;
11
14
  constructor(host) {
12
15
  this.#host = host;
13
16
  this.#treeDataSource = new UmbPartialViewsTreeServerDataSource(this.#host);
14
17
  this.#detailDataSource = new UmbPartialViewDetailServerDataSource(this.#host);
18
+ this.#folderDataSource = new UmbPartialViewsFolderServerDataSource(this.#host);
15
19
  this.#init = Promise.all([
16
20
  new UmbContextConsumerController(this.#host, UMB_PARTIAL_VIEW_TREE_STORE_CONTEXT_TOKEN, (instance) => {
17
21
  this.#treeStore = instance;
18
22
  }),
19
23
  ]);
20
24
  }
21
- requestTreeRoot() {
22
- //throw new Error('Method not implemented.');
23
- return { data: undefined, error: undefined };
25
+ //#region FOLDER
26
+ createFolderScaffold(parentId) {
27
+ const data = {
28
+ name: '',
29
+ parentId,
30
+ };
31
+ return Promise.resolve({ data, error: undefined });
24
32
  }
25
- byId(id) {
26
- throw new Error('Method not implemented.');
33
+ async createFolder(requestBody) {
34
+ await this.#init;
35
+ const req = {
36
+ parentPath: requestBody.parentId,
37
+ name: requestBody.name,
38
+ };
39
+ const promise = this.#folderDataSource.insert(req);
40
+ await promise;
41
+ this.requestTreeItemsOf(requestBody.parentId ? requestBody.parentId : null);
42
+ return promise;
27
43
  }
28
- // TODO: This method to be done, or able to go away?
29
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
30
- // @ts-ignore
31
- requestById(id) {
44
+ async requestFolder(unique) {
45
+ await this.#init;
46
+ return this.#folderDataSource.get(unique);
47
+ }
48
+ updateFolder(unique, folder) {
32
49
  throw new Error('Method not implemented.');
33
50
  }
34
- // TREE:
51
+ async deleteFolder(path) {
52
+ await this.#init;
53
+ const { data } = await this.requestFolder(path);
54
+ const promise = this.#folderDataSource.delete(path);
55
+ await promise;
56
+ this.requestTreeItemsOf(data?.parentPath ? data?.parentPath : null);
57
+ return promise;
58
+ }
59
+ //#endregion
60
+ //#region TREE
61
+ async requestTreeRoot() {
62
+ await this.#init;
63
+ const data = {
64
+ id: null,
65
+ path: null,
66
+ type: PARTIAL_VIEW_ROOT_ENTITY_TYPE,
67
+ name: 'Partial Views',
68
+ icon: 'umb:folder',
69
+ hasChildren: true,
70
+ };
71
+ return { data };
72
+ }
35
73
  async requestRootTreeItems() {
36
74
  await this.#init;
37
75
  const { data, error } = await this.#treeDataSource.getRootItems();
@@ -41,10 +79,11 @@ export class UmbTemplateRepository {
41
79
  return { data, error, asObservable: () => this.#treeStore.rootItems };
42
80
  }
43
81
  async requestTreeItemsOf(path) {
44
- if (!path)
45
- throw new Error('Cannot request tree item with missing path');
82
+ if (path === null) {
83
+ return this.requestRootTreeItems();
84
+ }
46
85
  await this.#init;
47
- const { data, error } = await this.#treeDataSource.getChildrenOf({ path });
86
+ const { data, error } = await this.#treeDataSource.getChildrenOf({ path, skip: 0, take: 100 });
48
87
  if (data) {
49
88
  this.#treeStore.appendItems(data.items);
50
89
  }
@@ -75,7 +114,8 @@ export class UmbTemplateRepository {
75
114
  await this.#init;
76
115
  return this.#treeStore.items(paths);
77
116
  }
78
- // DETAILS
117
+ //#endregion
118
+ //#region DETAILS
79
119
  async requestByKey(path) {
80
120
  if (!path)
81
121
  throw new Error('Path is missing');
@@ -83,17 +123,34 @@ export class UmbTemplateRepository {
83
123
  const { data, error } = await this.#detailDataSource.get(path);
84
124
  return { data, error };
85
125
  }
86
- // DETAILS:
87
- async createScaffold(parentKey) {
88
- return Promise.reject(new Error('Not implemented'));
126
+ requestById(id) {
127
+ throw new Error('Method not implemented.');
128
+ }
129
+ byId(id) {
130
+ throw new Error('Method not implemented.');
131
+ }
132
+ createScaffold(parentId, preset) {
133
+ return this.#detailDataSource.createScaffold(parentId, preset);
134
+ }
135
+ async create(data) {
136
+ const promise = this.#detailDataSource.insert(data);
137
+ await promise;
138
+ this.requestTreeItemsOf(data.parentPath ? data.parentPath : null);
139
+ return promise;
140
+ }
141
+ save(id, requestBody) {
142
+ return this.#detailDataSource.update(id, requestBody);
89
143
  }
90
- async create(patrial) {
91
- return Promise.reject(new Error('Not implemented'));
144
+ async delete(id) {
145
+ const promise = this.#detailDataSource.delete(id);
146
+ const parentPath = id.substring(0, id.lastIndexOf('/'));
147
+ this.requestTreeItemsOf(parentPath ? parentPath : null);
148
+ return promise;
92
149
  }
93
- async save(patrial) {
94
- return Promise.reject(new Error('Not implemented'));
150
+ getSnippets({ skip = 0, take = 100 }) {
151
+ return this.#detailDataSource.getSnippets({ skip, take });
95
152
  }
96
- async delete(key) {
97
- return Promise.reject(new Error('Not implemented'));
153
+ requestItems(keys) {
154
+ return this.#detailDataSource.getItems(keys);
98
155
  }
99
156
  }
@@ -1,26 +1,61 @@
1
1
  import { PartialViewDetails } from '../../config.js';
2
+ import { CreatePartialViewRequestModel, PagedSnippetItemResponseModel, PartialViewItemResponseModel, PartialViewResponseModel, UpdatePartialViewRequestModel } from '../../../../../external/backend-api/index.js';
2
3
  import type { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
3
4
  import { DataSourceResponse, UmbDataSource } from '../../../../../shared/repository/index.js';
4
- export declare class UmbPartialViewDetailServerDataSource implements UmbDataSource<PartialViewDetails, PartialViewDetails, PartialViewDetails, PartialViewDetails> {
5
+ export declare class UmbPartialViewDetailServerDataSource implements UmbDataSource<CreatePartialViewRequestModel, string, UpdatePartialViewRequestModel, PartialViewResponseModel, string> {
5
6
  #private;
7
+ constructor(host: UmbControllerHostElement);
6
8
  /**
7
- * Creates an instance of UmbPartialViewDetailServerDataSource.
8
- * @param {UmbControllerHostInterface} host
9
+ * Creates a new partial view scaffold
10
+ *
11
+ * @param {(string | null)} [parentId=null] You can leave this empty
12
+ * @param {string} preset Name of the snippet to use as a preset
13
+ * @return {*} {Promise<DataSourceResponse<PartialViewDetails>>}
9
14
  * @memberof UmbPartialViewDetailServerDataSource
10
15
  */
11
- constructor(host: UmbControllerHostElement);
12
- createScaffold(parentKey: string | null): Promise<DataSourceResponse<PartialViewDetails>>;
16
+ createScaffold(parentId: string | null | undefined, preset: string): Promise<DataSourceResponse<PartialViewDetails>>;
17
+ /**
18
+ * Get possible snippets for partial views
19
+ *
20
+ * @param {*} { skip = 0, take = 100 }
21
+ * @return {*} {Promise<DataSourceResponse<PagedSnippetItemResponseModel>>}
22
+ * @memberof UmbPartialViewDetailServerDataSource
23
+ */
24
+ getSnippets({ skip, take }: {
25
+ skip?: number | undefined;
26
+ take?: number | undefined;
27
+ }): Promise<DataSourceResponse<PagedSnippetItemResponseModel>>;
13
28
  /**
14
- * Fetches a Stylesheet with the given path from the server
29
+ * Fetches a partial view with the given path from the server
15
30
  * @param {string} path
16
31
  * @return {*}
17
32
  * @memberof UmbStylesheetServerDataSource
18
33
  */
19
- get(path: string): Promise<{
20
- data: undefined;
21
- error: undefined;
22
- }>;
23
- insert(data: any): Promise<DataSourceResponse<PartialViewDetails>>;
24
- update(unique: string, data: PartialViewDetails): Promise<DataSourceResponse<PartialViewDetails>>;
25
- delete(unique: string): Promise<DataSourceResponse>;
34
+ get(path: string): Promise<DataSourceResponse<import("../../../../../external/backend-api/index.js").TextFileResponseModelBaseModel>>;
35
+ /**
36
+ * Creates a new partial view
37
+ *
38
+ * @param {CreatePartialViewRequestModel} requestBody
39
+ * @return {*} {Promise<DataSourceResponse<string>>}
40
+ * @memberof UmbPartialViewDetailServerDataSource
41
+ */
42
+ insert(requestBody: CreatePartialViewRequestModel): Promise<DataSourceResponse<string>>;
43
+ /**
44
+ * Updates a partial view
45
+ *
46
+ * @param {string} [unique='']
47
+ * @param {UpdatePartialViewRequestModel} requestBody
48
+ * @return {*} {Promise<DataSourceResponse<any>>}
49
+ * @memberof UmbPartialViewDetailServerDataSource
50
+ */
51
+ update(unique: string | undefined, requestBody: UpdatePartialViewRequestModel): Promise<DataSourceResponse<any>>;
52
+ /**
53
+ * Deletes a partial view
54
+ *
55
+ * @param {string} path
56
+ * @return {*} {Promise<DataSourceResponse>}
57
+ * @memberof UmbPartialViewDetailServerDataSource
58
+ */
59
+ delete(path: string): Promise<DataSourceResponse>;
60
+ getItems(keys: Array<string>): Promise<DataSourceResponse<PartialViewItemResponseModel[]>>;
26
61
  }
@@ -1,36 +1,75 @@
1
- //TODO Pass proper models
1
+ import { PartialViewResource, } from '../../../../../external/backend-api/index.js';
2
+ import { tryExecuteAndNotify } from '../../../../../shared/resources/index.js';
2
3
  export class UmbPartialViewDetailServerDataSource {
3
4
  #host;
5
+ constructor(host) {
6
+ this.#host = host;
7
+ }
4
8
  /**
5
- * Creates an instance of UmbPartialViewDetailServerDataSource.
6
- * @param {UmbControllerHostInterface} host
9
+ * Creates a new partial view scaffold
10
+ *
11
+ * @param {(string | null)} [parentId=null] You can leave this empty
12
+ * @param {string} preset Name of the snippet to use as a preset
13
+ * @return {*} {Promise<DataSourceResponse<PartialViewDetails>>}
7
14
  * @memberof UmbPartialViewDetailServerDataSource
8
15
  */
9
- constructor(host) {
10
- this.#host = host;
16
+ createScaffold(parentId = null, preset) {
17
+ return tryExecuteAndNotify(this.#host, PartialViewResource.getPartialViewSnippetByName({ name: preset }));
11
18
  }
12
- createScaffold(parentKey) {
13
- throw new Error('Method not implemented.');
19
+ /**
20
+ * Get possible snippets for partial views
21
+ *
22
+ * @param {*} { skip = 0, take = 100 }
23
+ * @return {*} {Promise<DataSourceResponse<PagedSnippetItemResponseModel>>}
24
+ * @memberof UmbPartialViewDetailServerDataSource
25
+ */
26
+ getSnippets({ skip = 0, take = 100 }) {
27
+ return tryExecuteAndNotify(this.#host, PartialViewResource.getPartialViewSnippet({ skip, take }));
14
28
  }
15
29
  /**
16
- * Fetches a Stylesheet with the given path from the server
30
+ * Fetches a partial view with the given path from the server
17
31
  * @param {string} path
18
32
  * @return {*}
19
33
  * @memberof UmbStylesheetServerDataSource
20
34
  */
21
- async get(path) {
35
+ get(path) {
22
36
  if (!path)
23
37
  throw new Error('Path is missing');
24
- console.log('GET PATRIAL WITH PATH', path);
25
- return { data: undefined, error: undefined };
38
+ return tryExecuteAndNotify(this.#host, PartialViewResource.getPartialView({ path }));
26
39
  }
27
- insert(data) {
28
- throw new Error('Method not implemented.');
40
+ /**
41
+ * Creates a new partial view
42
+ *
43
+ * @param {CreatePartialViewRequestModel} requestBody
44
+ * @return {*} {Promise<DataSourceResponse<string>>}
45
+ * @memberof UmbPartialViewDetailServerDataSource
46
+ */
47
+ insert(requestBody) {
48
+ return tryExecuteAndNotify(this.#host, PartialViewResource.postPartialView({ requestBody }));
49
+ }
50
+ //TODO the parameters here are bit ugly, since unique is already in the request body parameter, but it has to be done to marry the UmbDataSource interface an backend API together... maybe come up with some nicer solution
51
+ /**
52
+ * Updates a partial view
53
+ *
54
+ * @param {string} [unique='']
55
+ * @param {UpdatePartialViewRequestModel} requestBody
56
+ * @return {*} {Promise<DataSourceResponse<any>>}
57
+ * @memberof UmbPartialViewDetailServerDataSource
58
+ */
59
+ update(unique = '', requestBody) {
60
+ return tryExecuteAndNotify(this.#host, PartialViewResource.putPartialView({ requestBody }));
29
61
  }
30
- update(unique, data) {
31
- throw new Error('Method not implemented.');
62
+ /**
63
+ * Deletes a partial view
64
+ *
65
+ * @param {string} path
66
+ * @return {*} {Promise<DataSourceResponse>}
67
+ * @memberof UmbPartialViewDetailServerDataSource
68
+ */
69
+ delete(path) {
70
+ return tryExecuteAndNotify(this.#host, PartialViewResource.deletePartialView({ path }));
32
71
  }
33
- delete(unique) {
34
- throw new Error('Method not implemented.');
72
+ getItems(keys) {
73
+ return tryExecuteAndNotify(this.#host, PartialViewResource.getPartialViewItem({ id: keys }));
35
74
  }
36
75
  }
@@ -0,0 +1,17 @@
1
+ import { CreateFolderRequestModel, FolderModelBaseModel, FolderReponseModel } from '../../../../../external/backend-api/index.js';
2
+ import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
3
+ import { DataSourceResponse, UmbFolderDataSource } from '../../../../../shared/repository/index.js';
4
+ export type PartialViewGetFolderResponse = {
5
+ path: string;
6
+ parentPath: string;
7
+ name: string;
8
+ };
9
+ export declare class UmbPartialViewsFolderServerDataSource implements UmbFolderDataSource {
10
+ #private;
11
+ constructor(host: UmbControllerHostElement);
12
+ createScaffold(parentId: string | null): Promise<DataSourceResponse<FolderReponseModel>>;
13
+ get(unique: string): Promise<DataSourceResponse<PartialViewGetFolderResponse>>;
14
+ insert(requestBody: CreateFolderRequestModel): Promise<DataSourceResponse<string>>;
15
+ update(unique: string, data: CreateFolderRequestModel): Promise<DataSourceResponse<FolderModelBaseModel>>;
16
+ delete(path: string): Promise<DataSourceResponse<unknown>>;
17
+ }
@@ -0,0 +1,23 @@
1
+ import { PartialViewResource, } from '../../../../../external/backend-api/index.js';
2
+ import { tryExecuteAndNotify } from '../../../../../shared/resources/index.js';
3
+ export class UmbPartialViewsFolderServerDataSource {
4
+ #host;
5
+ constructor(host) {
6
+ this.#host = host;
7
+ }
8
+ createScaffold(parentId) {
9
+ throw new Error('Method not implemented.');
10
+ }
11
+ get(unique) {
12
+ return tryExecuteAndNotify(this.#host, PartialViewResource.getPartialViewFolder({ path: unique }));
13
+ }
14
+ insert(requestBody) {
15
+ return tryExecuteAndNotify(this.#host, PartialViewResource.postPartialViewFolder({ requestBody }));
16
+ }
17
+ update(unique, data) {
18
+ throw new Error('Method not implemented.');
19
+ }
20
+ delete(path) {
21
+ return tryExecuteAndNotify(this.#host, PartialViewResource.deletePartialViewFolder({ path }));
22
+ }
23
+ }
@@ -1,5 +1,5 @@
1
1
  import { PartialViewsTreeDataSource } from './index.js';
2
- import { ProblemDetailsModel } from '../../../../../external/backend-api/index.js';
2
+ import { ProblemDetails } from '../../../../../external/backend-api/index.js';
3
3
  import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
4
4
  export declare class UmbPartialViewsTreeServerDataSource implements PartialViewsTreeDataSource {
5
5
  #private;
@@ -9,6 +9,6 @@ export declare class UmbPartialViewsTreeServerDataSource implements PartialViews
9
9
  path?: string | undefined;
10
10
  skip?: number | undefined;
11
11
  take?: number | undefined;
12
- }): Promise<ProblemDetailsModel | import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedFileSystemTreeItemPresentationModel>>;
13
- getItem(id: Array<string>): Promise<ProblemDetailsModel | import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").FileItemResponseModelBaseModel[]>>;
12
+ }): Promise<ProblemDetails | import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedFileSystemTreeItemPresentationModel>>;
13
+ getItem(id: Array<string>): Promise<ProblemDetails | import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").FileItemResponseModelBaseModel[]>>;
14
14
  }
@@ -1,8 +1,9 @@
1
- import { PARTIAL_VIEW_ENTITY_TYPE, PARTIAL_VIEW_REPOSITORY_ALIAS, PARTIAL_VIEW_TREE_ALIAS } from '../config.js';
1
+ import { PARTIAL_VIEW_ENTITY_TYPE, PARTIAL_VIEW_REPOSITORY_ALIAS, PARTIAL_VIEW_ROOT_ENTITY_TYPE, PARTIAL_VIEW_TREE_ALIAS, } from '../config.js';
2
2
  const tree = {
3
3
  type: 'tree',
4
4
  alias: PARTIAL_VIEW_TREE_ALIAS,
5
5
  name: 'Partial Views Tree',
6
+ weight: 30,
6
7
  meta: {
7
8
  repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
8
9
  },
@@ -13,7 +14,7 @@ const treeItem = {
13
14
  alias: 'Umb.TreeItem.PartialViews',
14
15
  name: 'Partial Views Tree Item',
15
16
  conditions: {
16
- entityTypes: [PARTIAL_VIEW_ENTITY_TYPE],
17
+ entityTypes: [PARTIAL_VIEW_ROOT_ENTITY_TYPE, PARTIAL_VIEW_ENTITY_TYPE],
17
18
  },
18
19
  };
19
20
  export const manifests = [tree, treeItem];
@@ -1,9 +1,14 @@
1
1
  import { UmbLitElement } from '../../../../shared/lit-element/index.js';
2
2
  export declare class UmbPartialViewsWorkspaceEditElement extends UmbLitElement {
3
3
  #private;
4
- private _name?;
4
+ private get _name();
5
+ private set _name(value);
5
6
  private _content?;
7
+ private _path?;
8
+ private _ready?;
6
9
  private _codeEditor?;
10
+ private _modalContext?;
11
+ private inputQuery$;
7
12
  constructor();
8
13
  render(): import("lit-html").TemplateResult<1>;
9
14
  static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];