@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
package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace-edit.element.js
CHANGED
|
@@ -4,18 +4,37 @@ 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 { UMB_TEMPLATE_QUERY_BUILDER_MODAL } from '../../templates/modals/modal-tokens.js';
|
|
8
|
+
import { getQuerySnippet } from '../../utils.js';
|
|
7
9
|
import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
8
10
|
import { css, html, customElement, query, state } from '../../../../external/lit/index.js';
|
|
9
11
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
12
|
+
import { UMB_MODAL_MANAGER_CONTEXT_TOKEN } from '../../../core/modal/index.js';
|
|
13
|
+
import { Subject, debounceTime } from '../../../../external/rxjs/index.js';
|
|
10
14
|
export let UmbPartialViewsWorkspaceEditElement = class UmbPartialViewsWorkspaceEditElement extends UmbLitElement {
|
|
15
|
+
#name;
|
|
16
|
+
get _name() {
|
|
17
|
+
return this.#name;
|
|
18
|
+
}
|
|
19
|
+
set _name(value) {
|
|
20
|
+
this.#name = value?.replace('.cshtml', '');
|
|
21
|
+
this.requestUpdate();
|
|
22
|
+
}
|
|
11
23
|
#partialViewsWorkspaceContext;
|
|
12
24
|
#isNew;
|
|
13
25
|
constructor() {
|
|
14
26
|
super();
|
|
15
|
-
this
|
|
27
|
+
this.#name = '';
|
|
16
28
|
this._content = '';
|
|
29
|
+
this._path = '';
|
|
30
|
+
this._ready = false;
|
|
17
31
|
this.#isNew = false;
|
|
18
|
-
this.
|
|
32
|
+
this.inputQuery$ = new Subject();
|
|
33
|
+
this.consumeContext(UMB_MODAL_MANAGER_CONTEXT_TOKEN, (instance) => {
|
|
34
|
+
this._modalContext = instance;
|
|
35
|
+
});
|
|
36
|
+
//tODO: should this be called something else here?
|
|
37
|
+
this.consumeContext('UmbEntityWorkspaceContext', (workspaceContext) => {
|
|
19
38
|
this.#partialViewsWorkspaceContext = workspaceContext;
|
|
20
39
|
this.observe(this.#partialViewsWorkspaceContext.name, (name) => {
|
|
21
40
|
this._name = name;
|
|
@@ -23,44 +42,73 @@ export let UmbPartialViewsWorkspaceEditElement = class UmbPartialViewsWorkspaceE
|
|
|
23
42
|
this.observe(this.#partialViewsWorkspaceContext.content, (content) => {
|
|
24
43
|
this._content = content;
|
|
25
44
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
45
|
+
this.observe(this.#partialViewsWorkspaceContext.path, (path) => {
|
|
46
|
+
this._path = path;
|
|
47
|
+
});
|
|
48
|
+
this.observe(this.#partialViewsWorkspaceContext.isNew, (isNew) => {
|
|
49
|
+
this.#isNew = !!isNew;
|
|
50
|
+
});
|
|
51
|
+
this.observe(this.#partialViewsWorkspaceContext.isCodeEditorReady, (isReady) => {
|
|
52
|
+
this._ready = isReady;
|
|
53
|
+
});
|
|
54
|
+
this.inputQuery$.pipe(debounceTime(250)).subscribe((nameInputValue) => {
|
|
55
|
+
this.#partialViewsWorkspaceContext?.setName(`${nameInputValue}.cshtml`);
|
|
56
|
+
});
|
|
29
57
|
});
|
|
30
58
|
}
|
|
31
|
-
// TODO: temp code for testing create and save
|
|
32
59
|
#onNameInput(event) {
|
|
33
60
|
const target = event.target;
|
|
34
61
|
const value = target.value;
|
|
35
|
-
this
|
|
62
|
+
this.inputQuery$.next(value);
|
|
36
63
|
}
|
|
37
|
-
//TODO - debounce that
|
|
38
64
|
#onCodeEditorInput(event) {
|
|
39
65
|
const target = event.target;
|
|
40
66
|
const value = target.code;
|
|
41
67
|
this.#partialViewsWorkspaceContext?.setContent(value);
|
|
42
68
|
}
|
|
43
|
-
#
|
|
69
|
+
#insertSnippet(event) {
|
|
44
70
|
const target = event.target;
|
|
45
71
|
const value = target.value;
|
|
46
|
-
this._codeEditor?.insert(
|
|
72
|
+
this._codeEditor?.insert(value);
|
|
73
|
+
}
|
|
74
|
+
#openQueryBuilder() {
|
|
75
|
+
const queryBuilderModal = this._modalContext?.open(UMB_TEMPLATE_QUERY_BUILDER_MODAL);
|
|
76
|
+
queryBuilderModal?.onSubmit().then((queryBuilderModalResult) => {
|
|
77
|
+
if (queryBuilderModalResult.value)
|
|
78
|
+
this._codeEditor?.insert(getQuerySnippet(queryBuilderModalResult.value));
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
#renderCodeEditor() {
|
|
82
|
+
return html `<umb-code-editor
|
|
83
|
+
language="razor"
|
|
84
|
+
id="content"
|
|
85
|
+
.code=${this._content ?? ''}
|
|
86
|
+
@input=${this.#onCodeEditorInput}></umb-code-editor>`;
|
|
47
87
|
}
|
|
48
88
|
render() {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
89
|
+
return html `<umb-workspace-editor alias="Umb.Workspace.Template">
|
|
90
|
+
<div id="workspace-header" slot="header">
|
|
91
|
+
<uui-input
|
|
92
|
+
placeholder="Enter name..."
|
|
93
|
+
.value=${this._name}
|
|
94
|
+
@input=${this.#onNameInput}
|
|
95
|
+
label="template name"></uui-input>
|
|
96
|
+
<small>Views/Partials/${this._path}</small>
|
|
97
|
+
</div>
|
|
52
98
|
<uui-box>
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
99
|
+
<div slot="header" id="code-editor-menu-container">
|
|
100
|
+
<umb-templating-insert-menu @insert=${this.#insertSnippet}></umb-templating-insert-menu>
|
|
101
|
+
<uui-button look="secondary" id="query-builder-button" label="Query builder" @click=${this.#openQueryBuilder}>
|
|
102
|
+
<uui-icon name="umb:wand"></uui-icon>Query builder
|
|
103
|
+
</uui-button>
|
|
104
|
+
</div>
|
|
105
|
+
${this._ready
|
|
106
|
+
? this.#renderCodeEditor()
|
|
107
|
+
: html `<div id="loader-container">
|
|
108
|
+
<uui-loader></uui-loader>
|
|
109
|
+
</div>`}
|
|
62
110
|
</uui-box>
|
|
63
|
-
</umb-
|
|
111
|
+
</umb-workspace-editor>`;
|
|
64
112
|
}
|
|
65
113
|
static { this.styles = [
|
|
66
114
|
UUITextStyles,
|
|
@@ -71,28 +119,76 @@ export let UmbPartialViewsWorkspaceEditElement = class UmbPartialViewsWorkspaceE
|
|
|
71
119
|
height: 100%;
|
|
72
120
|
}
|
|
73
121
|
|
|
122
|
+
#loader-container {
|
|
123
|
+
display: grid;
|
|
124
|
+
place-items: center;
|
|
125
|
+
min-height: calc(100dvh - 360px);
|
|
126
|
+
}
|
|
127
|
+
|
|
74
128
|
umb-code-editor {
|
|
75
|
-
--editor-height: calc(
|
|
129
|
+
--editor-height: calc(100dvh - 300px);
|
|
76
130
|
}
|
|
77
131
|
|
|
78
132
|
uui-box {
|
|
79
|
-
|
|
133
|
+
min-height: calc(100dvh - 300px);
|
|
134
|
+
margin: var(--uui-size-layout-1);
|
|
80
135
|
--uui-box-default-padding: 0;
|
|
136
|
+
/* remove header border bottom as code editor looks better in this box */
|
|
137
|
+
--uui-color-divider-standalone: transparent;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
#workspace-header {
|
|
141
|
+
width: 100%;
|
|
81
142
|
}
|
|
82
143
|
|
|
83
144
|
uui-input {
|
|
84
145
|
width: 100%;
|
|
85
|
-
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#code-editor-menu-container uui-icon:not([name='umb:delete']) {
|
|
149
|
+
margin-right: var(--uui-size-space-3);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#insert-menu {
|
|
153
|
+
margin: 0;
|
|
154
|
+
padding: 0;
|
|
155
|
+
margin-top: var(--uui-size-space-3);
|
|
156
|
+
background-color: var(--uui-color-surface);
|
|
157
|
+
box-shadow: var(--uui-shadow-depth-3);
|
|
158
|
+
min-width: calc(100% + var(--uui-size-8, 24px));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
#insert-menu > li,
|
|
162
|
+
ul {
|
|
163
|
+
padding: 0;
|
|
164
|
+
width: 100%;
|
|
165
|
+
list-style: none;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.insert-menu-item {
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#code-editor-menu-container {
|
|
173
|
+
display: flex;
|
|
174
|
+
justify-content: flex-end;
|
|
175
|
+
gap: var(--uui-size-space-3);
|
|
86
176
|
}
|
|
87
177
|
`,
|
|
88
178
|
]; }
|
|
89
179
|
};
|
|
90
180
|
__decorate([
|
|
91
181
|
state()
|
|
92
|
-
], UmbPartialViewsWorkspaceEditElement.prototype, "_name",
|
|
182
|
+
], UmbPartialViewsWorkspaceEditElement.prototype, "_name", null);
|
|
93
183
|
__decorate([
|
|
94
184
|
state()
|
|
95
185
|
], UmbPartialViewsWorkspaceEditElement.prototype, "_content", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
state()
|
|
188
|
+
], UmbPartialViewsWorkspaceEditElement.prototype, "_path", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
state()
|
|
191
|
+
], UmbPartialViewsWorkspaceEditElement.prototype, "_ready", void 0);
|
|
96
192
|
__decorate([
|
|
97
193
|
query('umb-code-editor')
|
|
98
194
|
], UmbPartialViewsWorkspaceEditElement.prototype, "_codeEditor", void 0);
|
package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.d.ts
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { UmbPartialViewsRepository } from '../repository/partial-views.repository.js';
|
|
2
|
+
import { PartialViewDetails } from '../config.js';
|
|
3
3
|
import { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
4
4
|
import { UmbWorkspaceContext } from '../../../core/workspace/index.js';
|
|
5
|
-
export declare class UmbPartialViewsWorkspaceContext extends UmbWorkspaceContext<
|
|
5
|
+
export declare class UmbPartialViewsWorkspaceContext extends UmbWorkspaceContext<UmbPartialViewsRepository, PartialViewDetails> {
|
|
6
6
|
#private;
|
|
7
7
|
getEntityId(): string | undefined;
|
|
8
8
|
getEntityType(): string;
|
|
9
9
|
save(): Promise<void>;
|
|
10
10
|
destroy(): void;
|
|
11
|
-
data: import("rxjs").Observable<
|
|
11
|
+
data: import("rxjs").Observable<import("../../../../external/backend-api/index.js").TextFileResponseModelBaseModel | undefined>;
|
|
12
12
|
name: import("rxjs").Observable<string | undefined>;
|
|
13
|
-
content: import("rxjs").Observable<string |
|
|
13
|
+
content: import("rxjs").Observable<string | undefined>;
|
|
14
|
+
path: import("rxjs").Observable<string | undefined>;
|
|
15
|
+
isCodeEditorReady: import("rxjs").Observable<boolean>;
|
|
14
16
|
constructor(host: UmbControllerHostElement);
|
|
15
|
-
getData():
|
|
17
|
+
getData(): import("../../../../external/backend-api/index.js").TextFileResponseModelBaseModel | undefined;
|
|
16
18
|
setName(value: string): void;
|
|
17
19
|
setContent(value: string): void;
|
|
18
20
|
load(entityKey: string): Promise<void>;
|
|
19
|
-
create(parentKey: string | null): Promise<void>;
|
|
21
|
+
create(parentKey: string | null, name?: string): Promise<void>;
|
|
20
22
|
}
|
package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.context.js
CHANGED
|
@@ -1,35 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createObservablePart, UmbDeepState } from '../../../../libs/observable-api/index.js';
|
|
1
|
+
import { UmbPartialViewsRepository } from '../repository/partial-views.repository.js';
|
|
2
|
+
import { createObservablePart, UmbBooleanState, UmbDeepState } from '../../../../libs/observable-api/index.js';
|
|
3
3
|
import { UmbWorkspaceContext } from '../../../core/workspace/index.js';
|
|
4
|
+
import { loadCodeEditor } from '../../code-editor/index.js';
|
|
4
5
|
export class UmbPartialViewsWorkspaceContext extends UmbWorkspaceContext {
|
|
5
6
|
getEntityId() {
|
|
6
|
-
|
|
7
|
+
return this.getData()?.path;
|
|
7
8
|
}
|
|
8
9
|
getEntityType() {
|
|
9
10
|
throw new Error('Method not implemented.');
|
|
10
11
|
}
|
|
11
12
|
save() {
|
|
12
|
-
|
|
13
|
+
const partialView = this.getData();
|
|
14
|
+
if (!partialView)
|
|
15
|
+
return Promise.reject('Something went wrong, there is no data for partial view you want to save...');
|
|
16
|
+
if (this.getIsNew()) {
|
|
17
|
+
const createRequestBody = {
|
|
18
|
+
name: partialView.name,
|
|
19
|
+
content: partialView.content,
|
|
20
|
+
parentPath: partialView.path + '/',
|
|
21
|
+
};
|
|
22
|
+
this.repository.create(createRequestBody);
|
|
23
|
+
console.log('create');
|
|
24
|
+
return Promise.resolve();
|
|
25
|
+
}
|
|
26
|
+
if (!partialView.path)
|
|
27
|
+
return Promise.reject('There is no path');
|
|
28
|
+
const updateRequestBody = {
|
|
29
|
+
name: partialView.name,
|
|
30
|
+
existingPath: partialView.path,
|
|
31
|
+
content: partialView.content,
|
|
32
|
+
};
|
|
33
|
+
this.repository.save(partialView.path, updateRequestBody);
|
|
34
|
+
return Promise.resolve();
|
|
13
35
|
}
|
|
14
36
|
destroy() {
|
|
15
37
|
throw new Error('Method not implemented.');
|
|
16
38
|
}
|
|
17
39
|
#data;
|
|
40
|
+
#isCodeEditorReady;
|
|
18
41
|
constructor(host) {
|
|
19
|
-
super(host, new
|
|
42
|
+
super(host, new UmbPartialViewsRepository(host));
|
|
20
43
|
this.#data = new UmbDeepState(undefined);
|
|
21
44
|
this.data = this.#data.asObservable();
|
|
22
45
|
this.name = createObservablePart(this.#data, (data) => data?.name);
|
|
23
46
|
this.content = createObservablePart(this.#data, (data) => data?.content);
|
|
47
|
+
this.path = createObservablePart(this.#data, (data) => data?.path);
|
|
48
|
+
this.#isCodeEditorReady = new UmbBooleanState(false);
|
|
49
|
+
this.isCodeEditorReady = this.#isCodeEditorReady.asObservable();
|
|
50
|
+
this.#loadCodeEditor();
|
|
51
|
+
}
|
|
52
|
+
async #loadCodeEditor() {
|
|
53
|
+
try {
|
|
54
|
+
await loadCodeEditor();
|
|
55
|
+
this.#isCodeEditorReady.next(true);
|
|
56
|
+
}
|
|
57
|
+
catch (error) {
|
|
58
|
+
console.error(error);
|
|
59
|
+
}
|
|
24
60
|
}
|
|
25
61
|
getData() {
|
|
26
62
|
return this.#data.getValue();
|
|
27
63
|
}
|
|
28
64
|
setName(value) {
|
|
29
|
-
this.#data.next({ ...this.#data.value,
|
|
65
|
+
this.#data.next({ ...this.#data.value, name: value });
|
|
30
66
|
}
|
|
31
67
|
setContent(value) {
|
|
32
|
-
this.#data.next({ ...this.#data.value,
|
|
68
|
+
this.#data.next({ ...this.#data.value, content: value });
|
|
33
69
|
}
|
|
34
70
|
async load(entityKey) {
|
|
35
71
|
const { data } = await this.repository.requestByKey(entityKey);
|
|
@@ -38,11 +74,16 @@ export class UmbPartialViewsWorkspaceContext extends UmbWorkspaceContext {
|
|
|
38
74
|
this.#data.next(data);
|
|
39
75
|
}
|
|
40
76
|
}
|
|
41
|
-
async create(parentKey) {
|
|
42
|
-
const { data } = await this.repository.createScaffold(parentKey);
|
|
77
|
+
async create(parentKey, name = 'Empty') {
|
|
78
|
+
const { data } = await this.repository.createScaffold(parentKey, name);
|
|
79
|
+
const newPartial = {
|
|
80
|
+
...data,
|
|
81
|
+
name: '',
|
|
82
|
+
path: parentKey ?? '',
|
|
83
|
+
};
|
|
43
84
|
if (!data)
|
|
44
85
|
return;
|
|
45
86
|
this.setIsNew(true);
|
|
46
|
-
this.#data.next(
|
|
87
|
+
this.#data.next(newPartial);
|
|
47
88
|
}
|
|
48
89
|
}
|
package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
2
2
|
import { UmbRoute } from '../../../../shared/router/index.js';
|
|
3
3
|
import './partial-views-workspace-edit.element.js';
|
|
4
|
+
import '../../components/insert-menu/templating-insert-menu.element.js';
|
|
4
5
|
export declare class UmbPartialViewsWorkspaceElement extends UmbLitElement {
|
|
5
6
|
#private;
|
|
6
7
|
_routes: UmbRoute[];
|
package/dist-cms/packages/templating/partial-views/workspace/partial-views-workspace.element.js
CHANGED
|
@@ -9,20 +9,23 @@ import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
|
9
9
|
import { css, html, customElement, state } from '../../../../external/lit/index.js';
|
|
10
10
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
11
11
|
import './partial-views-workspace-edit.element.js';
|
|
12
|
+
import '../../components/insert-menu/templating-insert-menu.element.js';
|
|
13
|
+
import { UmbWorkspaceIsNewRedirectController } from '../../../core/workspace/index.js';
|
|
12
14
|
export let UmbPartialViewsWorkspaceElement = class UmbPartialViewsWorkspaceElement extends UmbLitElement {
|
|
13
15
|
constructor() {
|
|
14
16
|
super(...arguments);
|
|
15
17
|
this.#partialViewsWorkspaceContext = new UmbPartialViewsWorkspaceContext(this);
|
|
16
|
-
this.#routerPath = '';
|
|
17
18
|
this.#element = document.createElement('umb-partial-views-workspace-edit');
|
|
18
|
-
this.#key = '';
|
|
19
19
|
this._routes = [
|
|
20
20
|
{
|
|
21
|
-
path: 'create/:parentKey',
|
|
21
|
+
path: 'create/:parentKey/:snippetName',
|
|
22
22
|
component: () => this.#element,
|
|
23
23
|
setup: async (component, info) => {
|
|
24
24
|
const parentKey = info.match.params.parentKey;
|
|
25
|
-
|
|
25
|
+
const decodePath = decodeURIComponent(parentKey);
|
|
26
|
+
const snippetName = info.match.params.snippetName;
|
|
27
|
+
this.#partialViewsWorkspaceContext.create(decodePath === 'null' ? null : parentKey, snippetName);
|
|
28
|
+
new UmbWorkspaceIsNewRedirectController(this, this.#partialViewsWorkspaceContext, this.shadowRoot.querySelector('umb-router-slot'));
|
|
26
29
|
},
|
|
27
30
|
},
|
|
28
31
|
{
|
|
@@ -30,21 +33,16 @@ export let UmbPartialViewsWorkspaceElement = class UmbPartialViewsWorkspaceEleme
|
|
|
30
33
|
component: () => this.#element,
|
|
31
34
|
setup: (component, info) => {
|
|
32
35
|
const key = info.match.params.key;
|
|
33
|
-
|
|
36
|
+
const decodePath = decodeURIComponent(key).replace('-cshtml', '.cshtml');
|
|
37
|
+
this.#partialViewsWorkspaceContext.load(decodePath);
|
|
34
38
|
},
|
|
35
39
|
},
|
|
36
40
|
];
|
|
37
41
|
}
|
|
38
42
|
#partialViewsWorkspaceContext;
|
|
39
|
-
#routerPath;
|
|
40
43
|
#element;
|
|
41
|
-
#key;
|
|
42
44
|
render() {
|
|
43
|
-
return html `<umb-router-slot
|
|
44
|
-
.routes=${this._routes}
|
|
45
|
-
@init=${(event) => {
|
|
46
|
-
this.#routerPath = event.target.absoluteRouterPath;
|
|
47
|
-
}}></umb-router-slot>`;
|
|
45
|
+
return html `<umb-router-slot .routes=${this._routes}></umb-router-slot>`;
|
|
48
46
|
}
|
|
49
47
|
static { this.styles = [UUITextStyles, css ``]; }
|
|
50
48
|
};
|
|
@@ -10,6 +10,7 @@ import { UmbStylesheetWorkspaceContext } from './stylesheet-workspace.context.js
|
|
|
10
10
|
import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
11
11
|
import { css, html, customElement, state } from '../../../../external/lit/index.js';
|
|
12
12
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
13
|
+
import { UmbWorkspaceIsNewRedirectController } from '../../../core/workspace/index.js';
|
|
13
14
|
export let UmbStylesheetWorkspaceElement = class UmbStylesheetWorkspaceElement extends UmbLitElement {
|
|
14
15
|
constructor() {
|
|
15
16
|
super(...arguments);
|
|
@@ -23,6 +24,7 @@ export let UmbStylesheetWorkspaceElement = class UmbStylesheetWorkspaceElement e
|
|
|
23
24
|
const path = info.match.params.path;
|
|
24
25
|
const serverPath = serverFilePathFromUrlFriendlyPath(path);
|
|
25
26
|
this.#workspaceContext.load(serverPath);
|
|
27
|
+
new UmbWorkspaceIsNewRedirectController(this, this.#workspaceContext, this.shadowRoot.querySelector('umb-router-slot'));
|
|
26
28
|
},
|
|
27
29
|
},
|
|
28
30
|
];
|
package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js
CHANGED
|
@@ -5,7 +5,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { UUITextStyles } from '../../../../../external/uui/index.js';
|
|
8
|
-
import { css, html, customElement, property, query, state } from '../../../../../external/lit/index.js';
|
|
8
|
+
import { css, html, customElement, property, query, state, } from '../../../../../external/lit/index.js';
|
|
9
9
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
10
10
|
import { TemplateQueryPropertyTypeModel, } from '../../../../../external/backend-api/index.js';
|
|
11
11
|
export let UmbQueryBuilderFilterElement = class UmbQueryBuilderFilterElement extends UmbLitElement {
|
|
@@ -91,7 +91,7 @@ export let UmbQueryBuilderFilterElement = class UmbQueryBuilderFilterElement ext
|
|
|
91
91
|
<span>${this.unremovable ? 'where' : 'and'}</span>
|
|
92
92
|
<umb-button-with-dropdown look="outline" id="property-alias-dropdown" label="Property alias"
|
|
93
93
|
>${this.filter?.propertyAlias ?? ''}
|
|
94
|
-
<uui-combobox-list
|
|
94
|
+
<uui-combobox-list slot="dropdown" @change=${this.#setPropertyAlias} class="options-list">
|
|
95
95
|
${this.settings?.properties?.map((property) => html `<uui-combobox-list-option tabindex="0" .value=${property.alias ?? ''}
|
|
96
96
|
>${property.alias}</uui-combobox-list-option
|
|
97
97
|
>`)}
|
|
@@ -127,7 +127,7 @@ export class UmbTemplateRepository {
|
|
|
127
127
|
}
|
|
128
128
|
// TODO: we currently don't use the detail store for anything.
|
|
129
129
|
// Consider to look up the data before fetching from the server
|
|
130
|
-
//this.#store?.append({ ...template
|
|
130
|
+
//this.#store?.append({ ...template });
|
|
131
131
|
// TODO: Update tree store with the new item? or ask tree to request the new item?
|
|
132
132
|
return { error };
|
|
133
133
|
}
|
|
@@ -62,13 +62,13 @@ ${currentContent}`;
|
|
|
62
62
|
return this.#data.getValue();
|
|
63
63
|
}
|
|
64
64
|
setName(value) {
|
|
65
|
-
this.#data.next({ ...this.#data.value,
|
|
65
|
+
this.#data.next({ ...this.#data.value, name: value });
|
|
66
66
|
}
|
|
67
67
|
setAlias(value) {
|
|
68
|
-
this.#data.next({ ...this.#data.value,
|
|
68
|
+
this.#data.next({ ...this.#data.value, alias: value });
|
|
69
69
|
}
|
|
70
70
|
setContent(value) {
|
|
71
|
-
this.#data.next({ ...this.#data.value,
|
|
71
|
+
this.#data.next({ ...this.#data.value, content: value });
|
|
72
72
|
}
|
|
73
73
|
getLayoutBlockRegexPattern() {
|
|
74
74
|
return new RegExp('(@{[\\s\\S][^if]*?Layout\\s*?=\\s*?)("[^"]*?"|null)(;[\\s\\S]*?})', 'gi');
|
|
@@ -130,7 +130,7 @@ ${currentContent}`;
|
|
|
130
130
|
if (!data)
|
|
131
131
|
return;
|
|
132
132
|
this.setIsNew(true);
|
|
133
|
-
this.#data.next({ ...data, id: '', name: '', alias: ''
|
|
133
|
+
this.#data.next({ ...data, id: '', name: '', alias: '' });
|
|
134
134
|
if (!parentId)
|
|
135
135
|
return;
|
|
136
136
|
await this.setMasterTemplate(parentId);
|
|
@@ -9,11 +9,11 @@ import { html, customElement, state } from '../../../../external/lit/index.js';
|
|
|
9
9
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
10
10
|
import '../../components/insert-menu/templating-insert-menu.element.js';
|
|
11
11
|
import './template-workspace-editor.element.js';
|
|
12
|
+
import { UmbWorkspaceIsNewRedirectController } from '../../../core/workspace/index.js';
|
|
12
13
|
export let UmbTemplateWorkspaceElement = class UmbTemplateWorkspaceElement extends UmbLitElement {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
15
16
|
this.#templateWorkspaceContext = new UmbTemplateWorkspaceContext(this);
|
|
16
|
-
this.#routerPath = '';
|
|
17
17
|
this.#element = document.createElement('umb-template-workspace-editor');
|
|
18
18
|
this._routes = [
|
|
19
19
|
{
|
|
@@ -22,6 +22,7 @@ export let UmbTemplateWorkspaceElement = class UmbTemplateWorkspaceElement exten
|
|
|
22
22
|
setup: (component, info) => {
|
|
23
23
|
const parentId = info.match.params.parentId === 'null' ? null : info.match.params.parentId;
|
|
24
24
|
this.#templateWorkspaceContext.create(parentId);
|
|
25
|
+
new UmbWorkspaceIsNewRedirectController(this, this.#templateWorkspaceContext, this.shadowRoot.querySelector('umb-router-slot'));
|
|
25
26
|
},
|
|
26
27
|
},
|
|
27
28
|
{
|
|
@@ -38,14 +39,9 @@ export let UmbTemplateWorkspaceElement = class UmbTemplateWorkspaceElement exten
|
|
|
38
39
|
this.#templateWorkspaceContext.load(entityId);
|
|
39
40
|
}
|
|
40
41
|
#templateWorkspaceContext;
|
|
41
|
-
#routerPath;
|
|
42
42
|
#element;
|
|
43
43
|
render() {
|
|
44
|
-
return html `<umb-router-slot
|
|
45
|
-
.routes=${this._routes}
|
|
46
|
-
@init=${(event) => {
|
|
47
|
-
this.#routerPath = event.target.absoluteRouterPath;
|
|
48
|
-
}}></umb-router-slot>`;
|
|
44
|
+
return html `<umb-router-slot .routes=${this._routes}></umb-router-slot>`;
|
|
49
45
|
}
|
|
50
46
|
};
|
|
51
47
|
__decorate([
|
|
@@ -4,6 +4,7 @@ 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 { UUITextStyles } from '../../external/uui/index.js';
|
|
7
8
|
import { UMB_AUTH } from '../../shared/auth/index.js';
|
|
8
9
|
import { css, html, customElement, state } from '../../external/lit/index.js';
|
|
9
10
|
import { UmbLitElement } from '../../shared/lit-element/index.js';
|
|
@@ -26,11 +27,13 @@ export let UmbUmbracoNewsDashboardElement = class UmbUmbracoNewsDashboardElement
|
|
|
26
27
|
}
|
|
27
28
|
render() {
|
|
28
29
|
return html `
|
|
29
|
-
<uui-box>
|
|
30
|
-
<h1>Welcome, ${this.name}</h1>
|
|
31
|
-
<p
|
|
32
|
-
|
|
30
|
+
<uui-box class="uui-text">
|
|
31
|
+
<h1 class="uui-h2" style="margin-top: var(--uui-size-layout-1);">Welcome, ${this.name}</h1>
|
|
32
|
+
<p class="uui-lead">
|
|
33
|
+
This is a preview version of Umbraco, where you can have a first-hand look at the new Backoffice.
|
|
34
|
+
</p>
|
|
33
35
|
<p>
|
|
36
|
+
There is currently very limited functionality.<br />
|
|
34
37
|
Please refer to the
|
|
35
38
|
<a target="_blank" href="http://docs.umbraco.com/umbraco-backoffice/">documentation</a> to learn more about
|
|
36
39
|
what is possible.
|
|
@@ -39,6 +42,7 @@ export let UmbUmbracoNewsDashboardElement = class UmbUmbracoNewsDashboardElement
|
|
|
39
42
|
`;
|
|
40
43
|
}
|
|
41
44
|
static { this.styles = [
|
|
45
|
+
UUITextStyles,
|
|
42
46
|
css `
|
|
43
47
|
:host {
|
|
44
48
|
display: block;
|
package/dist-cms/packages/users/user-groups/workspace/user-group-workspace-editor.element.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare class UmbUserGroupWorkspaceEditorElement extends UmbLitElement {
|
|
|
5
5
|
private _userGroup?;
|
|
6
6
|
private _userKeys?;
|
|
7
7
|
constructor();
|
|
8
|
-
render():
|
|
8
|
+
render(): import("lit-html").TemplateResult<1> | typeof nothing;
|
|
9
9
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
10
10
|
}
|
|
11
11
|
export default UmbUserGroupWorkspaceEditorElement;
|
|
@@ -9,6 +9,7 @@ import { UmbUserGroupWorkspaceEditorElement } from './user-group-workspace-edito
|
|
|
9
9
|
import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
10
10
|
import { html, customElement, state } from '../../../../external/lit/index.js';
|
|
11
11
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
12
|
+
import { UmbWorkspaceIsNewRedirectController } from '../../../core/workspace/index.js';
|
|
12
13
|
export let UmbUserGroupWorkspaceElement = class UmbUserGroupWorkspaceElement extends UmbLitElement {
|
|
13
14
|
constructor() {
|
|
14
15
|
super(...arguments);
|
|
@@ -20,6 +21,7 @@ export let UmbUserGroupWorkspaceElement = class UmbUserGroupWorkspaceElement ext
|
|
|
20
21
|
component: () => this.#element,
|
|
21
22
|
setup: (component, info) => {
|
|
22
23
|
this.#workspaceContext.create();
|
|
24
|
+
new UmbWorkspaceIsNewRedirectController(this, this.#workspaceContext, this.shadowRoot.querySelector('umb-router-slot'));
|
|
23
25
|
},
|
|
24
26
|
},
|
|
25
27
|
{
|
|
@@ -16,17 +16,10 @@ export declare class UmbUserCollectionServerDataSource implements UmbCollectionD
|
|
|
16
16
|
*/
|
|
17
17
|
constructor(host: UmbControllerHostElement);
|
|
18
18
|
getCollection(): Promise<import("../../../../../shared/repository/index.js").DataSourceResponse<import("../../../../../shared/repository/index.js").UmbPagedData<object & import("../../../../../external/backend-api/index.js").UserPresentationBaseModel & {
|
|
19
|
-
$type: string;
|
|
20
19
|
id?: string | undefined;
|
|
21
20
|
languageIsoCode?: string | null | undefined;
|
|
22
21
|
contentStartNodeIds?: string[] | undefined;
|
|
23
22
|
mediaStartNodeIds?: string[] | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* A data source for the User that fetches data from the server
|
|
26
|
-
* @export
|
|
27
|
-
* @class UmbUserCollectionServerDataSource
|
|
28
|
-
* @implements {RepositoryDetailDataSource}
|
|
29
|
-
*/
|
|
30
23
|
avatarUrls?: string[] | undefined;
|
|
31
24
|
state?: import("../../../../../external/backend-api/index.js").UserStateModel | undefined;
|
|
32
25
|
failedLoginAttempts?: number | undefined;
|
|
@@ -18,7 +18,6 @@ export declare class UmbUserServerDataSource implements UmbUserDetailDataSource
|
|
|
18
18
|
constructor(host: UmbControllerHostElement);
|
|
19
19
|
createScaffold(parentId: string | null): Promise<DataSourceResponse<UserPresentationBaseModel>>;
|
|
20
20
|
get(id: string): Promise<DataSourceResponse<object & UserPresentationBaseModel & {
|
|
21
|
-
$type: string;
|
|
22
21
|
id?: string | undefined;
|
|
23
22
|
languageIsoCode?: string | null | undefined;
|
|
24
23
|
contentStartNodeIds?: string[] | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataSourceResponse } from '../index.js';
|
|
2
|
-
export interface UmbDataSource<CreateRequestType, CreateResponseType, UpdateRequestType, ResponseType
|
|
3
|
-
createScaffold(parentId: string | null): Promise<DataSourceResponse<CreateRequestType>>;
|
|
2
|
+
export interface UmbDataSource<CreateRequestType, CreateResponseType, UpdateRequestType, ResponseType, CreateScaffoldPresetType = Partial<CreateRequestType>> {
|
|
3
|
+
createScaffold(parentId: string | null, preset?: Partial<CreateRequestType> | CreateScaffoldPresetType): Promise<DataSourceResponse<CreateRequestType>>;
|
|
4
4
|
get(unique: string): Promise<DataSourceResponse<ResponseType>>;
|
|
5
5
|
insert(data: CreateRequestType): Promise<DataSourceResponse<CreateResponseType>>;
|
|
6
6
|
update(unique: string, data: UpdateRequestType): Promise<DataSourceResponse<ResponseType>>;
|
package/dist-cms/shared/repository/data-source/extend-data-source-paged-response-data.function.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ import { Diff } from '../../utils/index.js';
|
|
|
17
17
|
*
|
|
18
18
|
* extendedResponse.data.items[0].bar is now equal to 'some additional data'
|
|
19
19
|
*/
|
|
20
|
-
export declare function extendDataSourcePagedResponseData<ExtendedDataType extends IncomingDataType, IncomingDataType extends object = object, MissingPropsType extends object =
|
|
20
|
+
export declare function extendDataSourcePagedResponseData<ExtendedDataType extends IncomingDataType, IncomingDataType extends object = object, MissingPropsType extends object = Diff<IncomingDataType, ExtendedDataType>, ToType = IncomingDataType & ExtendedDataType>(response: DataSourceResponse<UmbPagedData<IncomingDataType>>, appendData: MissingPropsType): DataSourceResponse<UmbPagedData<ToType>>;
|
package/dist-cms/shared/repository/data-source/extend-data-source-response-data.function.d.ts
CHANGED
|
@@ -17,4 +17,4 @@ import { Diff } from '../../utils/index.js';
|
|
|
17
17
|
*
|
|
18
18
|
* extendedResponse.data.bar is now equal to 'some additional data'
|
|
19
19
|
*/
|
|
20
|
-
export declare function extendDataSourceResponseData<ExtendedDataType extends IncomingDataType, IncomingDataType extends object = object, MissingPropsType extends object =
|
|
20
|
+
export declare function extendDataSourceResponseData<ExtendedDataType extends IncomingDataType, IncomingDataType extends object = object, MissingPropsType extends object = Diff<IncomingDataType, ExtendedDataType>, ToType = IncomingDataType & ExtendedDataType>(response: DataSourceResponse<IncomingDataType>, appendData: MissingPropsType): DataSourceResponse<ToType>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DataSourceResponse, UmbDataSourceErrorResponse } from './data-source/index.js';
|
|
2
2
|
import { Observable } from '../../external/rxjs/index.js';
|
|
3
|
-
export interface UmbDetailRepository<CreateRequestType = any, CreateResponseType = any, UpdateRequestType = any, ResponseType = any
|
|
4
|
-
createScaffold(parentId: string | null, preset?: Partial<CreateRequestType>): Promise<DataSourceResponse<CreateRequestType>>;
|
|
3
|
+
export interface UmbDetailRepository<CreateRequestType = any, CreateResponseType = any, UpdateRequestType = any, ResponseType = any, CreateScaffoldPresetType = Partial<CreateRequestType>> {
|
|
4
|
+
createScaffold(parentId: string | null, preset?: Partial<CreateRequestType> | CreateScaffoldPresetType): Promise<DataSourceResponse<CreateRequestType>>;
|
|
5
5
|
requestById(id: string): Promise<DataSourceResponse<ResponseType | undefined>>;
|
|
6
6
|
byId(id: string): Promise<Observable<ResponseType | undefined>>;
|
|
7
7
|
create(data: CreateRequestType): Promise<DataSourceResponse<CreateResponseType>>;
|