@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.
- package/dist-cms/apps/backoffice/backoffice.element.js +1 -1
- package/dist-cms/apps/installer/error/installer-error.element.d.ts +2 -2
- package/dist-cms/apps/installer/installer.context.d.ts +6 -6
- package/dist-cms/apps/installer/installer.context.js +2 -2
- package/dist-cms/custom-elements.json +97 -96
- package/dist-cms/external/backend-api/index.js +1 -1
- package/dist-cms/external/monaco-editor/{abap-42d5eca7.js → abap-7ad4f8f0.js} +1 -1
- package/dist-cms/external/monaco-editor/{apex-051da044.js → apex-30597c49.js} +1 -1
- package/dist-cms/external/monaco-editor/{bundle.css → assets/bundle-a4f90d1d.css} +593 -279
- package/dist-cms/external/monaco-editor/{azcli-ad3d7346.js → azcli-67c34a04.js} +1 -1
- package/dist-cms/external/monaco-editor/{bat-0217c0bc.js → bat-b8f4738b.js} +1 -1
- package/dist-cms/external/monaco-editor/{bicep-0cadb30a.js → bicep-b104b38b.js} +1 -1
- package/dist-cms/external/monaco-editor/{cameligo-ac55f854.js → cameligo-001d1ded.js} +1 -1
- package/dist-cms/external/monaco-editor/{clojure-388a0d58.js → clojure-fa9652a1.js} +1 -1
- package/dist-cms/external/monaco-editor/{coffee-7e7a2971.js → coffee-b69a8315.js} +1 -1
- package/dist-cms/external/monaco-editor/{cpp-840d082a.js → cpp-8053752f.js} +1 -1
- package/dist-cms/external/monaco-editor/{csharp-b3429875.js → csharp-886041a3.js} +1 -1
- package/dist-cms/external/monaco-editor/{csp-83442b86.js → csp-e846bce6.js} +1 -1
- package/dist-cms/external/monaco-editor/{css-7a34b8c3.js → css-50032e5e.js} +1 -1
- package/dist-cms/external/monaco-editor/{cssMode-98237bd7.js → cssMode-c0406684.js} +3 -3
- package/dist-cms/external/monaco-editor/{cypher-cc9c23cc.js → cypher-6f93a845.js} +1 -1
- package/dist-cms/external/monaco-editor/{dart-00a58d1c.js → dart-14284236.js} +1 -1
- package/dist-cms/external/monaco-editor/{dockerfile-668ee825.js → dockerfile-e9935eb4.js} +1 -1
- package/dist-cms/external/monaco-editor/{ecl-b42ffd48.js → ecl-9c89f204.js} +1 -1
- package/dist-cms/external/monaco-editor/{elixir-b9ceca92.js → elixir-ca8bf661.js} +1 -1
- package/dist-cms/external/monaco-editor/{flow9-7e9b2e50.js → flow9-ac147227.js} +1 -1
- package/dist-cms/external/monaco-editor/{freemarker2-b9eee947.js → freemarker2-793b7402.js} +2 -2
- package/dist-cms/external/monaco-editor/{fsharp-cdc5b8f1.js → fsharp-8eaad024.js} +1 -1
- package/dist-cms/external/monaco-editor/{go-4c92fa5c.js → go-05529e2e.js} +1 -1
- package/dist-cms/external/monaco-editor/{graphql-67842079.js → graphql-8f5b3fdd.js} +1 -1
- package/dist-cms/external/monaco-editor/{handlebars-36a3f04f.js → handlebars-aaa2fd96.js} +2 -2
- package/dist-cms/external/monaco-editor/{hcl-59febf1c.js → hcl-9e201a51.js} +1 -1
- package/dist-cms/external/monaco-editor/{html-b0d38e59.js → html-1194c0aa.js} +2 -2
- package/dist-cms/external/monaco-editor/{htmlMode-b85c3f7d.js → htmlMode-36df69c6.js} +3 -3
- package/dist-cms/external/monaco-editor/{index-534fb84c.js → index-7368f3e3.js} +418 -409
- package/dist-cms/external/monaco-editor/index.js +1 -1
- package/dist-cms/external/monaco-editor/{ini-1cf2ce67.js → ini-31a5619d.js} +1 -1
- package/dist-cms/external/monaco-editor/{java-e4fb14c6.js → java-8c6e1ae8.js} +1 -1
- package/dist-cms/external/monaco-editor/javascript-86205709.js +6 -0
- package/dist-cms/external/monaco-editor/{jsonMode-fa2b41c8.js → jsonMode-f663e935.js} +6 -6
- package/dist-cms/external/monaco-editor/{julia-9b6c6458.js → julia-fbb2af47.js} +1 -1
- package/dist-cms/external/monaco-editor/{kotlin-b66c14ff.js → kotlin-bfa96180.js} +1 -1
- package/dist-cms/external/monaco-editor/{less-8dc8685d.js → less-0b6a8ff1.js} +1 -1
- package/dist-cms/external/monaco-editor/{lexon-59c0b911.js → lexon-585e5248.js} +1 -1
- package/dist-cms/external/monaco-editor/{liquid-be38812f.js → liquid-37adc07a.js} +2 -2
- package/dist-cms/external/monaco-editor/{lua-3f4d9098.js → lua-f6c17885.js} +1 -1
- package/dist-cms/external/monaco-editor/{m3-82a8c502.js → m3-1b6456c5.js} +1 -1
- package/dist-cms/external/monaco-editor/{markdown-07c3fa1e.js → markdown-7bc251f9.js} +1 -1
- package/dist-cms/external/monaco-editor/{mips-59ddf2f4.js → mips-2df76781.js} +1 -1
- package/dist-cms/external/monaco-editor/{msdax-12ec689c.js → msdax-8c38e8b4.js} +1 -1
- package/dist-cms/external/monaco-editor/{mysql-2958efa4.js → mysql-abbb9ca3.js} +1 -1
- package/dist-cms/external/monaco-editor/{objective-c-08d94025.js → objective-c-efbfd08b.js} +1 -1
- package/dist-cms/external/monaco-editor/{pascal-b686b438.js → pascal-08abee72.js} +1 -1
- package/dist-cms/external/monaco-editor/{pascaligo-96457e5f.js → pascaligo-200db0cf.js} +1 -1
- package/dist-cms/external/monaco-editor/{perl-b938bdad.js → perl-079789ee.js} +1 -1
- package/dist-cms/external/monaco-editor/{pgsql-42970e97.js → pgsql-efd093d4.js} +1 -1
- package/dist-cms/external/monaco-editor/{php-7476401f.js → php-75c530f2.js} +1 -1
- package/dist-cms/external/monaco-editor/{pla-aaf0caa2.js → pla-a55a2765.js} +1 -1
- package/dist-cms/external/monaco-editor/{postiats-759ff404.js → postiats-6098f37b.js} +1 -1
- package/dist-cms/external/monaco-editor/{powerquery-a33a8de4.js → powerquery-949bb7fe.js} +1 -1
- package/dist-cms/external/monaco-editor/{powershell-ec154f36.js → powershell-7e550b21.js} +1 -1
- package/dist-cms/external/monaco-editor/{protobuf-e42d83dc.js → protobuf-25a4d695.js} +1 -1
- package/dist-cms/external/monaco-editor/{pug-04b2d67c.js → pug-f8c9f493.js} +1 -1
- package/dist-cms/external/monaco-editor/{python-b3b058ea.js → python-78a47148.js} +2 -2
- package/dist-cms/external/monaco-editor/{qsharp-5376e9d1.js → qsharp-c4b94317.js} +1 -1
- package/dist-cms/external/monaco-editor/{r-d212ba98.js → r-614353db.js} +1 -1
- package/dist-cms/external/monaco-editor/{razor-911a705a.js → razor-5de9ce12.js} +2 -2
- package/dist-cms/external/monaco-editor/{redis-51e44009.js → redis-fb089f4d.js} +1 -1
- package/dist-cms/external/monaco-editor/{redshift-8de2cfdc.js → redshift-a620fcb0.js} +1 -1
- package/dist-cms/external/monaco-editor/{restructuredtext-3f99254a.js → restructuredtext-7ab09fcf.js} +1 -1
- package/dist-cms/external/monaco-editor/{ruby-64a73e64.js → ruby-922be722.js} +1 -1
- package/dist-cms/external/monaco-editor/{rust-2a0390f1.js → rust-23e08578.js} +1 -1
- package/dist-cms/external/monaco-editor/{sb-4d8fa557.js → sb-ccceec0f.js} +1 -1
- package/dist-cms/external/monaco-editor/{scala-00d62260.js → scala-0535664d.js} +1 -1
- package/dist-cms/external/monaco-editor/{scheme-a0903f29.js → scheme-dba621eb.js} +1 -1
- package/dist-cms/external/monaco-editor/{scss-3e25f7ad.js → scss-28539a11.js} +1 -1
- package/dist-cms/external/monaco-editor/{shell-9c442847.js → shell-5b92a834.js} +1 -1
- package/dist-cms/external/monaco-editor/{solidity-6b3049ed.js → solidity-f63d6049.js} +1 -1
- package/dist-cms/external/monaco-editor/{sophia-f4a2b303.js → sophia-12e9ad90.js} +1 -1
- package/dist-cms/external/monaco-editor/{sparql-1d37a384.js → sparql-dedb74aa.js} +1 -1
- package/dist-cms/external/monaco-editor/{sql-946641be.js → sql-975a69d7.js} +1 -1
- package/dist-cms/external/monaco-editor/{st-9220dec1.js → st-1904ae33.js} +1 -1
- package/dist-cms/external/monaco-editor/{swift-06592b81.js → swift-e180a143.js} +1 -1
- package/dist-cms/external/monaco-editor/{systemverilog-b5ba493c.js → systemverilog-c5592fac.js} +1 -1
- package/dist-cms/external/monaco-editor/{tcl-3fe51e69.js → tcl-996f4ac7.js} +1 -1
- package/dist-cms/external/monaco-editor/tsMode-f4618e87.js +16 -0
- package/dist-cms/external/monaco-editor/{twig-ee0f3b03.js → twig-4859b551.js} +1 -1
- package/dist-cms/external/monaco-editor/{typescript-4d577e09.js → typescript-efea739f.js} +3 -3
- package/dist-cms/external/monaco-editor/{vb-e7e59935.js → vb-ad68fa9a.js} +1 -1
- package/dist-cms/external/monaco-editor/wgsl-5ee7b1ca.js +303 -0
- package/dist-cms/external/monaco-editor/{xml-b05159d9.js → xml-12b9ace3.js} +2 -2
- package/dist-cms/external/monaco-editor/{yaml-b4ec85f0.js → yaml-65e08cff.js} +3 -3
- package/dist-cms/external/rxjs/index.js +2 -2
- package/dist-cms/external/tinymce/index.js +16 -16
- package/dist-cms/libs/class-api/class.mixin.js +1 -1
- package/dist-cms/mocks/data/data-type.data.js +0 -40
- package/dist-cms/mocks/data/dictionary.data.js +0 -6
- package/dist-cms/mocks/data/document-type.data.d.ts +2 -0
- package/dist-cms/mocks/data/document-type.data.js +4 -6
- package/dist-cms/mocks/data/document.data.d.ts +3 -1
- package/dist-cms/mocks/data/document.data.js +18 -68
- package/dist-cms/mocks/data/media-type.data.d.ts +3 -3
- package/dist-cms/mocks/data/media-type.data.js +0 -4
- package/dist-cms/mocks/data/media.data.d.ts +3 -3
- package/dist-cms/mocks/data/media.data.js +0 -16
- package/dist-cms/mocks/data/member-group.data.js +0 -2
- package/dist-cms/mocks/data/member-type.data.js +0 -2
- package/dist-cms/mocks/data/member.data.js +0 -2
- package/dist-cms/mocks/data/partial-views.data.d.ts +19 -3
- package/dist-cms/mocks/data/partial-views.data.js +277 -18
- package/dist-cms/mocks/data/relation-type.data.js +0 -10
- package/dist-cms/mocks/data/stylesheet.data.js +0 -4
- package/dist-cms/mocks/data/template.data.d.ts +0 -1
- package/dist-cms/mocks/data/template.data.js +0 -10
- package/dist-cms/mocks/data/user-groups.data.js +0 -1
- package/dist-cms/mocks/data/users.data.js +0 -6
- package/dist-cms/mocks/data/utils.d.ts +2 -1
- package/dist-cms/mocks/data/utils.js +5 -5
- package/dist-cms/mocks/handlers/dictionary.handlers.js +0 -2
- package/dist-cms/mocks/handlers/document.handlers.js +15 -4
- package/dist-cms/mocks/handlers/partial-views.handlers.d.ts +2 -1
- package/dist-cms/mocks/handlers/partial-views.handlers.js +37 -5
- package/dist-cms/packages/core/collection/collection-selection-actions.element.d.ts +1 -1
- package/dist-cms/packages/core/components/input-checkbox-list/input-checkbox-list.element.d.ts +1 -1
- package/dist-cms/packages/core/components/input-radio-button-list/input-radio-button-list.element.d.ts +1 -1
- package/dist-cms/packages/core/components/input-tiny-mce/input-tiny-mce.handlers.js +1 -1
- package/dist-cms/packages/core/debug/debug.element.d.ts +1 -1
- package/dist-cms/packages/core/entity-action/common/create-folder/create-folder.action.d.ts +8 -0
- package/dist-cms/packages/core/entity-action/common/create-folder/create-folder.action.js +21 -0
- package/dist-cms/packages/core/entity-action/common/index.d.ts +1 -0
- package/dist-cms/packages/core/entity-action/common/index.js +1 -0
- package/dist-cms/packages/core/modal/common/folder/folder-modal.element.js +4 -1
- package/dist-cms/packages/core/modal/token/embedded-media-modal.token.js +0 -1
- package/dist-cms/packages/core/modal/token/folder-modal.token.d.ts +1 -0
- package/dist-cms/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.js +0 -1
- package/dist-cms/packages/core/tree/entity-tree-item/entity-tree-item.element.d.ts +1 -1
- package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.context.d.ts +9 -1
- package/dist-cms/packages/core/tree/file-system-tree-item/file-system-tree-item.context.js +28 -0
- package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.element.d.ts +11 -3
- package/dist-cms/packages/{templating/components → core/tree}/file-system-tree-item/file-system-tree-item.element.js +10 -1
- package/dist-cms/packages/core/tree/file-system-tree-item/index.d.ts +2 -0
- package/dist-cms/packages/core/tree/file-system-tree-item/index.js +2 -0
- package/dist-cms/packages/core/tree/index.d.ts +1 -0
- package/dist-cms/packages/core/tree/index.js +1 -0
- package/dist-cms/packages/core/tree/tree-item/tree-item.context.interface.d.ts +2 -2
- package/dist-cms/packages/core/tree/tree-item/tree-item.element.d.ts +1 -1
- package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.context.d.ts +1 -1
- package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.element.d.ts +1 -0
- package/dist-cms/packages/core/tree/tree-item-base/tree-item-base.element.js +6 -3
- package/dist-cms/packages/core/tree/tree-menu-item/tree-menu-item.element.d.ts +1 -1
- package/dist-cms/packages/core/tree/tree.context.d.ts +5 -5
- package/dist-cms/packages/core/workspace/index.d.ts +6 -5
- package/dist-cms/packages/core/workspace/index.js +6 -5
- package/dist-cms/packages/core/workspace/workspace-action/workspace-action.element.js +12 -4
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.d.ts +3 -3
- package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/index.d.ts +1 -0
- package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/index.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/workspace-is-new-redirect-controller.d.ts +16 -0
- package/dist-cms/packages/core/workspace/workspace-is-new-redirect-controller/workspace-is-new-redirect-controller.js +31 -0
- package/dist-cms/packages/core/workspace/workspace.element.d.ts +1 -1
- package/dist-cms/packages/{translation → dictionary}/dashboards/dictionary/dashboard-translation-dictionary.element.js +0 -1
- package/dist-cms/packages/dictionary/dictionary/index.d.ts +1 -0
- package/dist-cms/packages/dictionary/dictionary/index.js +1 -0
- package/dist-cms/packages/dictionary/dictionary/repository/index.d.ts +3 -0
- package/dist-cms/packages/dictionary/dictionary/repository/index.js +3 -0
- package/dist-cms/packages/{translation → dictionary}/dictionary/repository/manifests.js +1 -1
- package/dist-cms/packages/{translation → dictionary}/section.manifest.js +4 -4
- package/dist-cms/packages/{translation → dictionary}/umbraco-package.d.ts +1 -1
- package/dist-cms/packages/dictionary/umbraco-package.js +9 -0
- package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.d.ts +1 -1
- package/dist-cms/packages/documents/document-types/modals/allowed-document-types/allowed-document-types-modal.element.js +12 -23
- package/dist-cms/packages/documents/document-types/repository/document-type.repository.d.ts +2 -11
- package/dist-cms/packages/documents/document-types/repository/document-type.repository.js +1 -2
- package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.d.ts +1 -7
- package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.js +0 -4
- package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.element.js +3 -22
- package/dist-cms/packages/documents/documents/collection/views/table/document-table-collection-view.element.js +0 -1
- package/dist-cms/packages/documents/documents/repository/document.repository.d.ts +2 -0
- package/dist-cms/packages/documents/documents/repository/document.repository.js +10 -0
- package/dist-cms/packages/documents/documents/repository/sources/document.server.data.d.ts +14 -0
- package/dist-cms/packages/documents/documents/repository/sources/document.server.data.js +25 -5
- package/dist-cms/packages/documents/documents/tree/tree-item/document-tree-item.element.d.ts +1 -1
- package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.d.ts +1 -1
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.d.ts +2 -2
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +1 -1
- package/dist-cms/packages/documents/documents/workspace/document-workspace.element.js +2 -0
- package/dist-cms/packages/media/media/collection-view/media-table-collection-view.element.js +0 -1
- package/dist-cms/packages/media/media/repository/sources/media.tree.server.data.d.ts +3 -3
- package/dist-cms/packages/media/media/workspace/media-workspace-editor.element.d.ts +1 -1
- package/dist-cms/packages/media/media-types/repository/sources/media-type.tree.server.data.d.ts +2 -2
- package/dist-cms/packages/members/members/repository/sources/member.tree.server.data.js +1 -1
- package/dist-cms/packages/search/examine-management-dashboard/views/modal-views/fields-viewer.element.d.ts +1 -1
- package/dist-cms/packages/settings/dashboards/health-check/views/health-check-group.element.d.ts +1 -1
- package/dist-cms/packages/settings/dashboards/published-status/dashboard-published-status.element.js +11 -3
- package/dist-cms/packages/settings/data-types/modals/data-type-picker-flow/data-type-picker-flow-data-type-picker-modal.element.js +1 -1
- package/dist-cms/packages/settings/data-types/modals/data-type-picker-flow/data-type-picker-flow-modal.element.js +2 -2
- package/dist-cms/packages/settings/data-types/models.d.ts +1 -1
- package/dist-cms/packages/settings/data-types/repository/data-type.repository.js +0 -1
- package/dist-cms/packages/settings/data-types/repository/sources/data-type-folder.server.data.js +0 -1
- package/dist-cms/packages/settings/data-types/repository/sources/data-type.tree.server.data.d.ts +2 -2
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.element.js +2 -0
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.element.js +3 -20
- package/dist-cms/packages/settings/languages/workspace/language-root/components/language-root-table-delete-column-layout.element.d.ts +1 -1
- package/dist-cms/packages/settings/languages/workspace/language-root/components/language-root-table-name-column-layout.element.d.ts +1 -1
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.element.js +2 -0
- package/dist-cms/packages/templating/components/index.d.ts +0 -1
- package/dist-cms/packages/templating/components/index.js +0 -1
- package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js +1 -1
- package/dist-cms/packages/templating/manifests.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/config.d.ts +5 -5
- package/dist-cms/packages/templating/partial-views/config.js +3 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-empty.action.js +1 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.action.d.ts +10 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.action.js +16 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.modal.d.ts +16 -0
- package/dist-cms/packages/templating/partial-views/entity-actions/create/create-from-snippet.modal.js +73 -0
- package/dist-cms/packages/templating/partial-views/entity-actions/manifests.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/entity-actions/manifests.js +43 -5
- package/dist-cms/packages/templating/partial-views/manifests.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/repository/manifests.js +2 -2
- package/dist-cms/packages/templating/partial-views/repository/partial-views.repository.d.ts +51 -30
- package/dist-cms/packages/templating/partial-views/repository/partial-views.repository.js +81 -24
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.detail.server.data.d.ts +48 -13
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.detail.server.data.js +56 -17
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.folder.server.data.d.ts +17 -0
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.folder.server.data.js +23 -0
- package/dist-cms/packages/templating/partial-views/repository/sources/partial-views.tree.server.data.d.ts +3 -3
- package/dist-cms/packages/templating/partial-views/tree/manifests.js +3 -2
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.d.ts +6 -1
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.js +123 -27
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.d.ts +9 -7
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.js +51 -10
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.d.ts +1 -0
- package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.js +10 -12
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.element.js +2 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js +2 -2
- package/dist-cms/packages/templating/templates/repository/template.repository.js +1 -1
- package/dist-cms/packages/templating/templates/workspace/template-workspace.context.js +4 -4
- package/dist-cms/packages/templating/templates/workspace/template-workspace.element.js +3 -7
- package/dist-cms/packages/umbraco-news/umbraco-news-dashboard.element.js +8 -4
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.d.ts +1 -1
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.element.js +2 -0
- package/dist-cms/packages/users/users/repository/sources/user-collection.server.data.d.ts +0 -7
- package/dist-cms/packages/users/users/repository/sources/user.server.data.d.ts +0 -1
- package/dist-cms/shared/repository/data-source/data-source.interface.d.ts +2 -2
- package/dist-cms/shared/repository/data-source/extend-data-source-paged-response-data.function.d.ts +1 -1
- package/dist-cms/shared/repository/data-source/extend-data-source-response-data.function.d.ts +1 -1
- package/dist-cms/shared/repository/detail-repository.interface.d.ts +2 -2
- package/dist-cms/shared/repository/folder-repository.interface.d.ts +6 -6
- package/dist-cms/shared/repository/item-repository.interface.d.ts +2 -2
- package/dist-cms/shared/repository/tree-repository.interface.d.ts +6 -6
- package/dist-cms/shared/resources/resource.controller.js +1 -1
- package/dist-cms/shared/router/generate-route-path-builder.function.d.ts +1 -1
- package/dist-cms/shared/router/generate-route-path-builder.function.js +1 -1
- package/dist-cms/shared/router/route.context.js +8 -8
- package/dist-cms/shared/utils/ensure-path-ends-with-slash.function.d.ts +1 -0
- package/dist-cms/shared/utils/ensure-path-ends-with-slash.function.js +3 -0
- package/dist-cms/shared/utils/index.d.ts +1 -0
- package/dist-cms/shared/utils/index.js +1 -0
- package/dist-cms/shared/utils/media-helper.service.d.ts +1 -1
- package/dist-cms/shared/utils/media-helper.service.js +1 -1
- package/dist-cms/tinymce/CHANGELOG.md +22 -0
- package/dist-cms/tinymce/composer.json +1 -1
- package/dist-cms/tinymce/icons/default/icons.js +3 -0
- package/dist-cms/tinymce/icons/default/icons.min.js +1 -1
- package/dist-cms/tinymce/langs/ar.js +1 -1
- package/dist-cms/tinymce/langs/bg_BG.js +56 -56
- package/dist-cms/tinymce/langs/fr_FR.js +1 -1
- package/dist-cms/tinymce/langs/ka_GE.js +406 -0
- package/dist-cms/tinymce/langs/nb_NO.js +15 -15
- package/dist-cms/tinymce/models/dom/model.js +1 -1
- package/dist-cms/tinymce/models/dom/model.min.js +1 -1
- package/dist-cms/tinymce/package.json +1 -1
- package/dist-cms/tinymce/plugins/accordion/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/accordion/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/advlist/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/advlist/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/anchor/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/anchor/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/autolink/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/autolink/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/autoresize/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/autoresize/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/autosave/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/autosave/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/charmap/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/charmap/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/code/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/code/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/codesample/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/codesample/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/directionality/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/directionality/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/emoticons/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/emoticons/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/fullscreen/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/fullscreen/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/help/plugin.js +6 -1
- package/dist-cms/tinymce/plugins/help/plugin.min.js +2 -2
- package/dist-cms/tinymce/plugins/image/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/image/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/importcss/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/importcss/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/insertdatetime/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/insertdatetime/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/link/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/link/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/lists/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/lists/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/media/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/media/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/nonbreaking/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/nonbreaking/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/pagebreak/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/pagebreak/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/preview/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/preview/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/quickbars/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/quickbars/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/save/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/save/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/searchreplace/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/searchreplace/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/table/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/table/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/template/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/template/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/visualblocks/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/visualblocks/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/visualchars/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/visualchars/plugin.min.js +1 -1
- package/dist-cms/tinymce/plugins/wordcount/plugin.js +1 -1
- package/dist-cms/tinymce/plugins/wordcount/plugin.min.js +1 -1
- package/dist-cms/tinymce/skins/ui/oxide/skin.css +18 -0
- package/dist-cms/tinymce/skins/ui/oxide/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/oxide-dark/skin.css +18 -0
- package/dist-cms/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5/skin.css +18 -0
- package/dist-cms/tinymce/skins/ui/tinymce-5/skin.min.css +1 -1
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.css +18 -0
- package/dist-cms/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/dist-cms/tinymce/themes/silver/theme.js +279 -85
- package/dist-cms/tinymce/themes/silver/theme.min.js +2 -2
- package/dist-cms/tinymce/tinymce.d.ts +7 -2
- package/dist-cms/tinymce/tinymce.js +3 -3
- package/dist-cms/tinymce/tinymce.min.js +2 -2
- package/dist-cms/tsconfig.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +40 -120
- package/dist-cms/vscode-html-custom-data.json +46 -46
- package/package.json +25 -25
- package/dist-cms/external/monaco-editor/javascript-53ce59fc.js +0 -6
- package/dist-cms/external/monaco-editor/tsMode-3f4e7f54.js +0 -16
- package/dist-cms/packages/templating/components/file-system-tree-item/file-system-tree-item.context.js +0 -10
- package/dist-cms/packages/translation/umbraco-package.js +0 -9
- /package/dist-cms/packages/{translation → dictionary}/dashboards/dictionary/dashboard-translation-dictionary.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create-dictionary-modal.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create-dictionary-modal.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create.action.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/create/create.action.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export-dictionary-modal.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export-dictionary-modal.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export.action.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/export/export.action.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import-dictionary-modal.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import-dictionary-modal.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import.action.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/import/import.action.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/reload.action.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/entity-actions/reload.action.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/dictionary-menu-item.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/dictionary-menu-item.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu-item/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu.manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/menu.manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.repository.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.repository.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.store.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.store.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.tree.store.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/dictionary.tree.store.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.detail.server.data.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.detail.server.data.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.tree.server.data.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/repository/sources/dictionary.tree.server.data.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/tree/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/tree/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace-editor.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace-editor.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.context.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.context.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/dictionary-workspace.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/dictionary/workspace/views/editor/workspace-view-dictionary-editor.element.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/manifests.d.ts +0 -0
- /package/dist-cms/packages/{translation → dictionary}/manifests.js +0 -0
- /package/dist-cms/packages/{translation → dictionary}/section.manifest.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UmbWorkspaceContext } from '../workspace-context/index.js';
|
|
2
|
+
import { UmbBaseController, type UmbControllerHost } from '../../../../libs/controller-api/index.js';
|
|
3
|
+
import type { UmbEntityBase } from '../../../../shared/models/index.js';
|
|
4
|
+
import { type UmbRouterSlotElement } from '../../../../shared/router/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* Observe the workspace context to see if the entity is new or not.
|
|
7
|
+
* If that changes redirect to the edit url.
|
|
8
|
+
*
|
|
9
|
+
* This requires that the edit URL, is edit/:id
|
|
10
|
+
* @param host
|
|
11
|
+
* @param workspaceContext
|
|
12
|
+
* @param router
|
|
13
|
+
*/
|
|
14
|
+
export declare class UmbWorkspaceIsNewRedirectController extends UmbBaseController {
|
|
15
|
+
constructor(host: UmbControllerHost, workspaceContext: UmbWorkspaceContext<unknown, UmbEntityBase>, router: UmbRouterSlotElement);
|
|
16
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { UmbBaseController } from '../../../../libs/controller-api/index.js';
|
|
2
|
+
import { createRoutePathBuilder } from '../../../../shared/router/index.js';
|
|
3
|
+
import { ensurePathEndsWithSlash } from '../../../../shared/utils/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Observe the workspace context to see if the entity is new or not.
|
|
6
|
+
* If that changes redirect to the edit url.
|
|
7
|
+
*
|
|
8
|
+
* This requires that the edit URL, is edit/:id
|
|
9
|
+
* @param host
|
|
10
|
+
* @param workspaceContext
|
|
11
|
+
* @param router
|
|
12
|
+
*/
|
|
13
|
+
export class UmbWorkspaceIsNewRedirectController extends UmbBaseController {
|
|
14
|
+
constructor(host, workspaceContext, router) {
|
|
15
|
+
super(host);
|
|
16
|
+
// Navigate to edit route when language is created:
|
|
17
|
+
this.observe(workspaceContext.isNew, (isNew) => {
|
|
18
|
+
if (isNew === false) {
|
|
19
|
+
const id = workspaceContext.getEntityId();
|
|
20
|
+
if (router && id) {
|
|
21
|
+
const routerPath = router.absoluteRouterPath;
|
|
22
|
+
if (routerPath) {
|
|
23
|
+
const newPath = createRoutePathBuilder(ensurePathEndsWithSlash(routerPath) + 'edit/:id')({ id });
|
|
24
|
+
window.history.pushState({}, '', newPath);
|
|
25
|
+
this.destroy();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, '_observeIsNew');
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -2,7 +2,7 @@ import { nothing } from '../../../external/lit/index.js';
|
|
|
2
2
|
import { UmbLitElement } from '../../../shared/lit-element/index.js';
|
|
3
3
|
export declare class UmbWorkspaceElement extends UmbLitElement {
|
|
4
4
|
entityType: string;
|
|
5
|
-
render():
|
|
5
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
6
6
|
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
7
7
|
}
|
|
8
8
|
export default UmbWorkspaceElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './repository/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './repository/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UmbDictionaryRepository } from '
|
|
1
|
+
import { UmbDictionaryRepository } from './dictionary.repository.js';
|
|
2
2
|
import { UmbDictionaryTreeStore } from './dictionary.tree.store.js';
|
|
3
3
|
import { UmbDictionaryStore } from './dictionary.store.js';
|
|
4
4
|
export const DICTIONARY_REPOSITORY_ALIAS = 'Umb.Repository.Dictionary';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const sectionAlias = 'Umb.Section.
|
|
1
|
+
const sectionAlias = 'Umb.Section.Dictionary';
|
|
2
2
|
const section = {
|
|
3
3
|
type: 'section',
|
|
4
4
|
alias: sectionAlias,
|
|
5
|
-
name: '
|
|
5
|
+
name: 'Dictionary Section',
|
|
6
6
|
weight: 100,
|
|
7
7
|
meta: {
|
|
8
|
-
label: '
|
|
9
|
-
pathname: '
|
|
8
|
+
label: 'Dictionary',
|
|
9
|
+
pathname: 'dictionary',
|
|
10
10
|
},
|
|
11
11
|
};
|
|
12
12
|
const menuSectionSidebarApp = {
|
|
@@ -9,7 +9,7 @@ export declare class UmbAllowedDocumentTypesModalElement extends UmbModalBaseEle
|
|
|
9
9
|
private _retrieveAllowedChildrenOfRoot;
|
|
10
10
|
private _handleCancel;
|
|
11
11
|
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
-
static styles: import("@lit/reactive-element/css-tag
|
|
12
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
13
13
|
}
|
|
14
14
|
export default UmbAllowedDocumentTypesModalElement;
|
|
15
15
|
declare global {
|
|
@@ -4,17 +4,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { UmbDocumentTypeRepository } from '../../repository/document-type.repository.js';
|
|
8
7
|
import { html, nothing, customElement, state, ifDefined } from '../../../../../external/lit/index.js';
|
|
9
8
|
import { UUITextStyles } from '../../../../../external/uui/index.js';
|
|
10
9
|
import { UmbModalBaseElement } from '../../../../../shared/modal/index.js';
|
|
10
|
+
import { UmbDocumentRepository } from '../../../documents/index.js';
|
|
11
11
|
export let UmbAllowedDocumentTypesModalElement = class UmbAllowedDocumentTypesModalElement extends UmbModalBaseElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
14
|
-
this.#
|
|
14
|
+
this.#documentRepository = new UmbDocumentRepository(this);
|
|
15
15
|
this._allowedDocumentTypes = [];
|
|
16
16
|
}
|
|
17
|
-
#
|
|
17
|
+
#documentRepository;
|
|
18
18
|
connectedCallback() {
|
|
19
19
|
super.connectedCallback();
|
|
20
20
|
const parentId = this.data?.parentId;
|
|
@@ -35,29 +35,18 @@ export let UmbAllowedDocumentTypesModalElement = class UmbAllowedDocumentTypesMo
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
async _retrieveAllowedChildrenOf(id) {
|
|
38
|
-
const { data } = await this.#
|
|
38
|
+
const { data } = await this.#documentRepository.requestAllowedDocumentTypesOf(id);
|
|
39
39
|
if (data) {
|
|
40
|
-
|
|
40
|
+
// TODO: implement pagination, or get 1000?
|
|
41
|
+
this._allowedDocumentTypes = data.items;
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
async _retrieveAllowedChildrenOfRoot() {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
await Promise.all(data.items.map((item) => {
|
|
50
|
-
if (item.id) {
|
|
51
|
-
return this.#documentTypeRepository.requestById(item.id).then((result) => {
|
|
52
|
-
if (result.data) {
|
|
53
|
-
allFullModels.push({ $type: '', ...result.data });
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
return Promise.resolve();
|
|
58
|
-
}));
|
|
59
|
-
this._allowedDocumentTypes = allFullModels.filter((item) => item.allowedAsRoot) ?? [];
|
|
60
|
-
// End of hack...^^
|
|
45
|
+
const { data } = await this.#documentRepository.requestAllowedDocumentTypesAtRoot();
|
|
46
|
+
if (data) {
|
|
47
|
+
// TODO: implement pagination, or get 1000?
|
|
48
|
+
this._allowedDocumentTypes = data.items;
|
|
49
|
+
}
|
|
61
50
|
}
|
|
62
51
|
_handleCancel() {
|
|
63
52
|
this.modalContext?.reject();
|
|
@@ -72,7 +61,7 @@ export let UmbAllowedDocumentTypesModalElement = class UmbAllowedDocumentTypesMo
|
|
|
72
61
|
}
|
|
73
62
|
render() {
|
|
74
63
|
return html `
|
|
75
|
-
<umb-body-layout headline=${this._headline}>
|
|
64
|
+
<umb-body-layout headline=${this._headline ?? ''}>
|
|
76
65
|
<uui-box>
|
|
77
66
|
${this._allowedDocumentTypes.length === 0 ? html `<p>No allowed types</p>` : nothing}
|
|
78
67
|
${this._allowedDocumentTypes.map((item) => html `
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import type { UmbTreeRepository, UmbDetailRepository } from '../../../../shared/repository/index.js';
|
|
2
2
|
import type { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
3
3
|
import { CreateDocumentTypeRequestModel, DocumentTypeResponseModel, EntityTreeItemResponseModel, FolderTreeItemResponseModel, UpdateDocumentTypeRequestModel } from '../../../../external/backend-api/index.js';
|
|
4
|
-
type ItemType = DocumentTypeResponseModel
|
|
5
|
-
$type: string;
|
|
6
|
-
};
|
|
4
|
+
type ItemType = DocumentTypeResponseModel;
|
|
7
5
|
export declare class UmbDocumentTypeRepository implements UmbTreeRepository<EntityTreeItemResponseModel>, UmbDetailRepository<CreateDocumentTypeRequestModel, any, UpdateDocumentTypeRequestModel, DocumentTypeResponseModel> {
|
|
8
6
|
#private;
|
|
9
7
|
constructor(host: UmbControllerHostElement);
|
|
@@ -35,13 +33,7 @@ export declare class UmbDocumentTypeRepository implements UmbTreeRepository<Enti
|
|
|
35
33
|
treeItemsOf(parentId: string | null): Promise<import("rxjs").Observable<EntityTreeItemResponseModel[]>>;
|
|
36
34
|
itemsLegacy(ids: Array<string>): Promise<import("rxjs").Observable<EntityTreeItemResponseModel[]>>;
|
|
37
35
|
createScaffold(parentId: string | null): Promise<{
|
|
38
|
-
data:
|
|
39
|
-
allowedTemplateIds?: string[] | undefined;
|
|
40
|
-
defaultTemplateId?: string | null | undefined;
|
|
41
|
-
cleanup?: import("../../../../external/backend-api/index.js").ContentTypeCleanupModel | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
$type: string;
|
|
44
|
-
};
|
|
36
|
+
data: DocumentTypeResponseModel;
|
|
45
37
|
}>;
|
|
46
38
|
requestById(id: string): Promise<{
|
|
47
39
|
data: DocumentTypeResponseModel | undefined;
|
|
@@ -52,7 +44,6 @@ export declare class UmbDocumentTypeRepository implements UmbTreeRepository<Enti
|
|
|
52
44
|
requestAllowedChildTypesOf(id: string): Promise<import("../../../../shared/repository/index.js").DataSourceResponse<any>>;
|
|
53
45
|
create(documentType: ItemType): Promise<{
|
|
54
46
|
data: {
|
|
55
|
-
$type: string;
|
|
56
47
|
alias?: string | undefined;
|
|
57
48
|
name?: string | undefined;
|
|
58
49
|
description?: string | null | undefined;
|
|
@@ -125,7 +125,7 @@ export class UmbDocumentTypeRepository {
|
|
|
125
125
|
const splitResultUrl = data.split('/');
|
|
126
126
|
const newId = splitResultUrl[splitResultUrl.length - 1];
|
|
127
127
|
// Temporary hack while we are not in control of IDs:
|
|
128
|
-
const newDocument = { ...(await this.requestById(newId)).data
|
|
128
|
+
const newDocument = { ...(await this.requestById(newId)).data };
|
|
129
129
|
if (newDocument) {
|
|
130
130
|
const notification = { data: { message: `Document Type created` } };
|
|
131
131
|
this.#notificationContext?.peek('positive', notification);
|
|
@@ -184,7 +184,6 @@ export const createTreeItem = (item) => {
|
|
|
184
184
|
throw new Error('item.id is null or undefined');
|
|
185
185
|
// TODO: needs parentID, this is missing in the current model. Should be good when updated to a createModel.
|
|
186
186
|
return {
|
|
187
|
-
$type: 'FolderTreeItemResponseModel',
|
|
188
187
|
type: 'document-type',
|
|
189
188
|
parentId: null,
|
|
190
189
|
name: item.name,
|
package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.d.ts
CHANGED
|
@@ -29,13 +29,7 @@ export declare class UmbDocumentTypeServerDataSource implements UmbDataSource<Cr
|
|
|
29
29
|
* @memberof UmbDocumentTypeServerDataSource
|
|
30
30
|
*/
|
|
31
31
|
createScaffold(parentId: string | null): Promise<{
|
|
32
|
-
data:
|
|
33
|
-
allowedTemplateIds?: string[] | undefined;
|
|
34
|
-
defaultTemplateId?: string | null | undefined;
|
|
35
|
-
cleanup?: import("../../../../../external/backend-api/index.js").ContentTypeCleanupModel | undefined;
|
|
36
|
-
} & {
|
|
37
|
-
$type: string;
|
|
38
|
-
};
|
|
32
|
+
data: DocumentTypeResponseModel;
|
|
39
33
|
}>;
|
|
40
34
|
/**
|
|
41
35
|
* Inserts a new Document Type on the server
|
package/dist-cms/packages/documents/document-types/repository/sources/document-type.server.data.js
CHANGED
|
@@ -38,10 +38,8 @@ export class UmbDocumentTypeServerDataSource {
|
|
|
38
38
|
* @memberof UmbDocumentTypeServerDataSource
|
|
39
39
|
*/
|
|
40
40
|
async createScaffold(parentId) {
|
|
41
|
-
// TODO: Type hack to append $type and parentId to the DocumentTypeResponseModel.
|
|
42
41
|
//, parentId: string | null
|
|
43
42
|
const data = {
|
|
44
|
-
$type: 'string',
|
|
45
43
|
id: UmbId.new(),
|
|
46
44
|
//parentId: parentId,
|
|
47
45
|
name: '',
|
|
@@ -78,7 +76,6 @@ export class UmbDocumentTypeServerDataSource {
|
|
|
78
76
|
//if (!document.id) throw new Error('ID is missing');
|
|
79
77
|
documentType = { ...documentType };
|
|
80
78
|
// TODO: Hack to remove some props that ruins the document-type post end-point.
|
|
81
|
-
documentType.$type = undefined;
|
|
82
79
|
documentType.id = undefined;
|
|
83
80
|
// TODO: Investigate if this matters (should go away anyway when we have the end-point accepts us defining the ids.)
|
|
84
81
|
documentType.properties = documentType.properties?.map((prop) => {
|
|
@@ -103,7 +100,6 @@ export class UmbDocumentTypeServerDataSource {
|
|
|
103
100
|
throw new Error('Id is missing');
|
|
104
101
|
documentType = { ...documentType };
|
|
105
102
|
// TODO: Hack to remove some props that ruins the document-type post end-point.
|
|
106
|
-
documentType.$type = undefined;
|
|
107
103
|
documentType.id = undefined;
|
|
108
104
|
return tryExecuteAndNotify(this.#host, DocumentTypeResource.putDocumentTypeById({ id, requestBody: documentType }));
|
|
109
105
|
}
|
package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.element.js
CHANGED
|
@@ -7,13 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { UmbDocumentTypeWorkspaceContext } from './document-type-workspace.context.js';
|
|
8
8
|
import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
9
9
|
import { html, customElement, state } from '../../../../external/lit/index.js';
|
|
10
|
-
import { generateRoutePathBuilder } from '../../../../shared/router/index.js';
|
|
11
10
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
11
|
+
import { UmbWorkspaceIsNewRedirectController } from '../../../core/workspace/index.js';
|
|
12
12
|
export let UmbDocumentTypeWorkspaceElement = class UmbDocumentTypeWorkspaceElement extends UmbLitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
15
|
this.#workspaceContext = new UmbDocumentTypeWorkspaceContext(this);
|
|
16
|
-
this.#routerPath = '';
|
|
17
16
|
this._routes = [
|
|
18
17
|
{
|
|
19
18
|
path: 'create/:parentId',
|
|
@@ -21,18 +20,7 @@ export let UmbDocumentTypeWorkspaceElement = class UmbDocumentTypeWorkspaceEleme
|
|
|
21
20
|
setup: (_component, info) => {
|
|
22
21
|
const parentId = info.match.params.parentId === 'null' ? null : info.match.params.parentId;
|
|
23
22
|
this.#workspaceContext.create(parentId);
|
|
24
|
-
|
|
25
|
-
this.observe(this.#workspaceContext.isNew, (isNew) => {
|
|
26
|
-
if (isNew === false) {
|
|
27
|
-
const id = this.#workspaceContext.getEntityId();
|
|
28
|
-
if (this.#routerPath && id) {
|
|
29
|
-
const routeBasePath = this.#routerPath.endsWith('/') ? this.#routerPath : this.#routerPath + '/';
|
|
30
|
-
// TODO: Revisit if this is the right way to change URL:
|
|
31
|
-
const newPath = generateRoutePathBuilder(routeBasePath + 'edit/:id')({ id });
|
|
32
|
-
window.history.pushState({}, '', newPath);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}, '_observeIsNew');
|
|
23
|
+
new UmbWorkspaceIsNewRedirectController(this, this.#workspaceContext, this.shadowRoot.querySelector('umb-router-slot'));
|
|
36
24
|
},
|
|
37
25
|
},
|
|
38
26
|
{
|
|
@@ -47,15 +35,8 @@ export let UmbDocumentTypeWorkspaceElement = class UmbDocumentTypeWorkspaceEleme
|
|
|
47
35
|
];
|
|
48
36
|
}
|
|
49
37
|
#workspaceContext;
|
|
50
|
-
#routerPath;
|
|
51
38
|
render() {
|
|
52
|
-
return html `
|
|
53
|
-
<umb-router-slot
|
|
54
|
-
.routes=${this._routes}
|
|
55
|
-
@init=${(event) => {
|
|
56
|
-
this.#routerPath = event.target.absoluteRouterPath;
|
|
57
|
-
}}></umb-router-slot>
|
|
58
|
-
`;
|
|
39
|
+
return html ` <umb-router-slot .routes=${this._routes}></umb-router-slot> `;
|
|
59
40
|
}
|
|
60
41
|
static { this.styles = [UUITextStyles]; }
|
|
61
42
|
};
|
|
@@ -23,6 +23,8 @@ export declare class UmbDocumentRepository implements UmbTreeRepository<Document
|
|
|
23
23
|
error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
|
|
24
24
|
asObservable: () => import("rxjs").Observable<import("../../../../external/backend-api/index.js").EntityTreeItemResponseModel[]>;
|
|
25
25
|
}>;
|
|
26
|
+
requestAllowedDocumentTypesAtRoot(): Promise<import("../../../../shared/repository/index.js").DataSourceResponse<import("../../../../external/backend-api/index.js").PagedDocumentTypeResponseModel>>;
|
|
27
|
+
requestAllowedDocumentTypesOf(id: string): Promise<import("../../../../shared/repository/index.js").DataSourceResponse<import("../../../../external/backend-api/index.js").PagedDocumentTypeResponseModel>>;
|
|
26
28
|
requestItemsLegacy(ids: Array<string>): Promise<{
|
|
27
29
|
data: any[] | undefined;
|
|
28
30
|
error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
|
|
@@ -61,6 +61,16 @@ export class UmbDocumentRepository {
|
|
|
61
61
|
}
|
|
62
62
|
return { data, error, asObservable: () => this.#treeStore.childrenOf(parentId) };
|
|
63
63
|
}
|
|
64
|
+
// Structure permissions;
|
|
65
|
+
async requestAllowedDocumentTypesAtRoot() {
|
|
66
|
+
return this.#detailDataSource.getAllowedDocumentTypesAtRoot();
|
|
67
|
+
}
|
|
68
|
+
async requestAllowedDocumentTypesOf(id) {
|
|
69
|
+
if (!id)
|
|
70
|
+
throw new Error('Id is missing');
|
|
71
|
+
await this.#init;
|
|
72
|
+
return this.#detailDataSource.getAllowedDocumentTypesOf(id);
|
|
73
|
+
}
|
|
64
74
|
async requestItemsLegacy(ids) {
|
|
65
75
|
await this.#init;
|
|
66
76
|
if (!ids) {
|
|
@@ -61,4 +61,18 @@ export declare class UmbDocumentServerDataSource implements UmbDataSource<Create
|
|
|
61
61
|
* @memberof UmbDocumentServerDataSource
|
|
62
62
|
*/
|
|
63
63
|
delete(id: string): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<any>>;
|
|
64
|
+
/**
|
|
65
|
+
* Get the allowed document types for a given parent id
|
|
66
|
+
* @param {string} id
|
|
67
|
+
* @return {*}
|
|
68
|
+
* @memberof UmbDocumentTypeServerDataSource
|
|
69
|
+
*/
|
|
70
|
+
getAllowedDocumentTypesOf(id: string): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedDocumentTypeResponseModel>>;
|
|
71
|
+
/**
|
|
72
|
+
* Get the allowed document types for root
|
|
73
|
+
* @param {string} id
|
|
74
|
+
* @return {*}
|
|
75
|
+
* @memberof UmbDocumentTypeServerDataSource
|
|
76
|
+
*/
|
|
77
|
+
getAllowedDocumentTypesAtRoot(): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedDocumentTypeResponseModel>>;
|
|
64
78
|
}
|
|
@@ -47,7 +47,6 @@ export class UmbDocumentServerDataSource {
|
|
|
47
47
|
values: [],
|
|
48
48
|
variants: [
|
|
49
49
|
{
|
|
50
|
-
$type: 'DocumentVariantRequestModel',
|
|
51
50
|
state: ContentStateModel.DRAFT,
|
|
52
51
|
publishDate: null,
|
|
53
52
|
culture: null,
|
|
@@ -72,11 +71,10 @@ export class UmbDocumentServerDataSource {
|
|
|
72
71
|
throw new Error('Id is missing');
|
|
73
72
|
// TODO: Hack to remove some props that ruins the document-type post end-point.
|
|
74
73
|
const unFroozenDocument = { ...document };
|
|
75
|
-
unFroozenDocument.$type = undefined;
|
|
76
74
|
unFroozenDocument.id = undefined;
|
|
77
75
|
unFroozenDocument.variants =
|
|
78
76
|
unFroozenDocument.variants?.map((variant) => {
|
|
79
|
-
return { ...variant
|
|
77
|
+
return { ...variant };
|
|
80
78
|
}) ?? [];
|
|
81
79
|
return tryExecuteAndNotify(this.#host, DocumentResource.postDocument({ requestBody: unFroozenDocument }));
|
|
82
80
|
}
|
|
@@ -91,11 +89,10 @@ export class UmbDocumentServerDataSource {
|
|
|
91
89
|
throw new Error('Id is missing');
|
|
92
90
|
// TODO: Hack to remove some props that ruins the document-type post end-point.
|
|
93
91
|
const unFroozenDocument = { ...document };
|
|
94
|
-
unFroozenDocument.$type = undefined;
|
|
95
92
|
unFroozenDocument.id = undefined;
|
|
96
93
|
unFroozenDocument.variants =
|
|
97
94
|
unFroozenDocument.variants?.map((variant) => {
|
|
98
|
-
return { ...variant
|
|
95
|
+
return { ...variant };
|
|
99
96
|
}) ?? [];
|
|
100
97
|
return tryExecuteAndNotify(this.#host, DocumentResource.putDocumentById({ id, requestBody: unFroozenDocument }));
|
|
101
98
|
}
|
|
@@ -136,4 +133,27 @@ export class UmbDocumentServerDataSource {
|
|
|
136
133
|
},
|
|
137
134
|
}).then((res) => res.json()));
|
|
138
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Get the allowed document types for a given parent id
|
|
138
|
+
* @param {string} id
|
|
139
|
+
* @return {*}
|
|
140
|
+
* @memberof UmbDocumentTypeServerDataSource
|
|
141
|
+
*/
|
|
142
|
+
async getAllowedDocumentTypesOf(id) {
|
|
143
|
+
if (!id)
|
|
144
|
+
throw new Error('Id is missing');
|
|
145
|
+
// TODO: Notice, here we need to implement pagination.
|
|
146
|
+
return tryExecuteAndNotify(this.#host, DocumentResource.getDocumentByIdAllowedDocumentTypes({ id }));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Get the allowed document types for root
|
|
150
|
+
* @param {string} id
|
|
151
|
+
* @return {*}
|
|
152
|
+
* @memberof UmbDocumentTypeServerDataSource
|
|
153
|
+
*/
|
|
154
|
+
async getAllowedDocumentTypesAtRoot() {
|
|
155
|
+
console.log('source requestAllowedDocumentTypesAtRoot');
|
|
156
|
+
// TODO: Notice, here we need to implement pagination.
|
|
157
|
+
return tryExecuteAndNotify(this.#host, DocumentResource.getDocumentRootAllowedDocumentTypes({}));
|
|
158
|
+
}
|
|
139
159
|
}
|
package/dist-cms/packages/documents/documents/tree/tree-item/document-tree-item.element.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class UmbDocumentTreeItemElement extends UmbLitElement implements
|
|
|
7
7
|
private _item?;
|
|
8
8
|
get item(): DocumentTreeItemResponseModel | undefined;
|
|
9
9
|
set item(value: DocumentTreeItemResponseModel | undefined);
|
|
10
|
-
render():
|
|
10
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
11
11
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
12
12
|
}
|
|
13
13
|
export default UmbDocumentTreeItemElement;
|
package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class UmbDocumentWorkspaceSplitViewElement extends UmbLitElement
|
|
|
7
7
|
_variants?: Array<ActiveVariant>;
|
|
8
8
|
constructor();
|
|
9
9
|
private _observeActiveVariantInfo;
|
|
10
|
-
render():
|
|
10
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
11
11
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
12
12
|
}
|
|
13
13
|
export default UmbDocumentWorkspaceSplitViewElement;
|
|
@@ -25,8 +25,8 @@ export declare class UmbDocumentWorkspaceContext extends UmbWorkspaceContext<Umb
|
|
|
25
25
|
getVariant(variantId: UmbVariantId): import("../../../../external/backend-api/index.js").DocumentVariantResponseModel | undefined;
|
|
26
26
|
getName(variantId?: UmbVariantId): string | undefined;
|
|
27
27
|
setName(name: string, variantId?: UmbVariantId): void;
|
|
28
|
-
propertyValuesOf(variantId?: UmbVariantId): import("rxjs").Observable<import("../../../../external/backend-api/index.js").
|
|
29
|
-
propertyDataByAlias(propertyAlias: string, variantId?: UmbVariantId): import("rxjs").Observable<import("../../../../external/backend-api/index.js").
|
|
28
|
+
propertyValuesOf(variantId?: UmbVariantId): import("rxjs").Observable<import("../../../../external/backend-api/index.js").ValueModelBaseModel[] | undefined>;
|
|
29
|
+
propertyDataByAlias(propertyAlias: string, variantId?: UmbVariantId): import("rxjs").Observable<import("../../../../external/backend-api/index.js").ValueModelBaseModel | undefined>;
|
|
30
30
|
propertyValueByAlias(propertyAlias: string, variantId?: UmbVariantId): import("rxjs").Observable<any>;
|
|
31
31
|
getPropertyValue(alias: string, variantId?: UmbVariantId): void;
|
|
32
32
|
setPropertyValue(alias: string, value: unknown, variantId?: UmbVariantId): void;
|
|
@@ -109,7 +109,7 @@ export class UmbDocumentWorkspaceContext extends UmbWorkspaceContext {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
setPropertyValue(alias, value, variantId) {
|
|
112
|
-
const entry = {
|
|
112
|
+
const entry = { ...variantId?.toObject(), alias, value };
|
|
113
113
|
const currentData = this.#draft.value;
|
|
114
114
|
if (currentData) {
|
|
115
115
|
const values = appendToFrozenArray(currentData.values || [], entry, (x) => x.alias === alias && (variantId ? variantId.compare(x) : true));
|
|
@@ -9,6 +9,7 @@ import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
|
9
9
|
import { html, customElement, state } from '../../../../external/lit/index.js';
|
|
10
10
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
11
11
|
import './document-workspace-editor.element.js';
|
|
12
|
+
import { UmbWorkspaceIsNewRedirectController } from '../../../core/workspace/index.js';
|
|
12
13
|
export let UmbDocumentWorkspaceElement = class UmbDocumentWorkspaceElement extends UmbLitElement {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -23,6 +24,7 @@ export let UmbDocumentWorkspaceElement = class UmbDocumentWorkspaceElement exten
|
|
|
23
24
|
const parentId = info.match.params.parentId === 'null' ? null : info.match.params.parentId;
|
|
24
25
|
const documentTypeKey = info.match.params.documentTypeKey;
|
|
25
26
|
this.#workspaceContext.create(documentTypeKey, parentId);
|
|
27
|
+
new UmbWorkspaceIsNewRedirectController(this, this.#workspaceContext, this.shadowRoot.querySelector('umb-router-slot'));
|
|
26
28
|
},
|
|
27
29
|
},
|
|
28
30
|
{
|
|
@@ -21,19 +21,19 @@ export declare class UmbMediaTreeServerDataSource implements UmbTreeDataSource {
|
|
|
21
21
|
* @return {*}
|
|
22
22
|
* @memberof UmbMediaTreeServerDataSource
|
|
23
23
|
*/
|
|
24
|
-
getRootItems(): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").
|
|
24
|
+
getRootItems(): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedMediaTreeItemResponseModel>>;
|
|
25
25
|
/**
|
|
26
26
|
* Fetches the children of a given parent id from the server
|
|
27
27
|
* @param {(string | null)} parentId
|
|
28
28
|
* @return {*}
|
|
29
29
|
* @memberof UmbMediaTreeServerDataSource
|
|
30
30
|
*/
|
|
31
|
-
getChildrenOf(parentId: string | null): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").
|
|
31
|
+
getChildrenOf(parentId: string | null): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedMediaTreeItemResponseModel>>;
|
|
32
32
|
/**
|
|
33
33
|
* Fetches the items for the given ids from the server
|
|
34
34
|
* @param {Array<string>} ids
|
|
35
35
|
* @return {*}
|
|
36
36
|
* @memberof UmbMediaTreeServerDataSource
|
|
37
37
|
*/
|
|
38
|
-
getItems(ids: Array<string>): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<
|
|
38
|
+
getItems(ids: Array<string>): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").MediaTreeItemResponseModel[]>>;
|
|
39
39
|
}
|
|
@@ -4,7 +4,7 @@ export declare class UmbMediaWorkspaceEditorElement extends UmbLitElement {
|
|
|
4
4
|
#private;
|
|
5
5
|
_id?: string;
|
|
6
6
|
constructor();
|
|
7
|
-
render():
|
|
7
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
8
8
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
9
9
|
}
|
|
10
10
|
export default UmbMediaWorkspaceEditorElement;
|
package/dist-cms/packages/media/media-types/repository/sources/media-type.tree.server.data.d.ts
CHANGED
|
@@ -19,14 +19,14 @@ export declare class UmbMediaTypeTreeServerDataSource implements UmbTreeDataSour
|
|
|
19
19
|
* @return {*}
|
|
20
20
|
* @memberof UmbMediaTypeTreeServerDataSource
|
|
21
21
|
*/
|
|
22
|
-
getRootItems(): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").
|
|
22
|
+
getRootItems(): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedMediaTypeTreeItemResponseModel>>;
|
|
23
23
|
/**
|
|
24
24
|
* Fetches the children of a given parent id from the server
|
|
25
25
|
* @param {(string | null)} parentId
|
|
26
26
|
* @return {*}
|
|
27
27
|
* @memberof UmbMediaTypeTreeServerDataSource
|
|
28
28
|
*/
|
|
29
|
-
getChildrenOf(parentId: string | null): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").
|
|
29
|
+
getChildrenOf(parentId: string | null): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../external/backend-api/index.js").PagedMediaTypeTreeItemResponseModel>>;
|
|
30
30
|
/**
|
|
31
31
|
* Fetches the items for the given ids from the server
|
|
32
32
|
* @param {Array<string>} ids
|
|
@@ -36,7 +36,7 @@ export class UmbMemberTreeServerDataSource {
|
|
|
36
36
|
const data = await response.json();
|
|
37
37
|
return { data, error: undefined };
|
|
38
38
|
// if (ids) {
|
|
39
|
-
// const error:
|
|
39
|
+
// const error: ProblemDetails = { title: 'Ids are missing' };
|
|
40
40
|
// return { error };
|
|
41
41
|
// }
|
|
42
42
|
// return tryExecuteAndNotify(
|
|
@@ -5,7 +5,7 @@ export declare class UmbModalElementFieldsViewerElement extends UmbModalBaseElem
|
|
|
5
5
|
name: string;
|
|
6
6
|
}> {
|
|
7
7
|
private _handleClose;
|
|
8
|
-
render():
|
|
8
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
9
9
|
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
10
10
|
}
|
|
11
11
|
declare global {
|