@umbraco-cms/backoffice 14.0.0-d542ed7d → 14.0.0-d87d656d
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/custom-elements.json +96 -95
- 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/mocks/data/partial-views.data.d.ts +19 -3
- package/dist-cms/mocks/data/partial-views.data.js +277 -10
- package/dist-cms/mocks/data/utils.d.ts +2 -1
- package/dist-cms/mocks/data/utils.js +5 -0
- 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/components/input-tiny-mce/input-tiny-mce.handlers.js +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/{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 +10 -2
- 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/workspace/workspace-action/workspace-action.element.js +12 -4
- 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/settings/dashboards/published-status/dashboard-published-status.element.js +11 -3
- 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 +47 -26
- 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/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 +49 -8
- 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 +7 -3
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js +2 -2
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts +1 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.js +1 -0
- package/dist-cms/shared/repository/data-source/data-source.interface.d.ts +2 -2
- package/dist-cms/shared/repository/detail-repository.interface.d.ts +2 -2
- 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 +45 -45
- 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}/dashboards/dictionary/dashboard-translation-dictionary.element.js +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
|
@@ -8,7 +8,7 @@ import { UmbFileSystemTreeItemContext } from './file-system-tree-item.context.js
|
|
|
8
8
|
import { css, html, nothing, customElement, property } from '../../../../external/lit/index.js';
|
|
9
9
|
import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
10
10
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
11
|
-
import { umbExtensionsRegistry } from '
|
|
11
|
+
import { umbExtensionsRegistry, } from '../../extension-registry/index.js';
|
|
12
12
|
// TODO: Move to separate file:
|
|
13
13
|
const manifest = {
|
|
14
14
|
type: 'kind',
|
|
@@ -21,6 +21,14 @@ const manifest = {
|
|
|
21
21
|
},
|
|
22
22
|
};
|
|
23
23
|
umbExtensionsRegistry.register(manifest);
|
|
24
|
+
/**
|
|
25
|
+
* Tree item element for file system tree items. Uses the path as the unique identifier.
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @class UmbFileSystemTreeItemElement
|
|
29
|
+
* @extends {UmbLitElement}
|
|
30
|
+
* @implements {UmbTreeItemExtensionElement}
|
|
31
|
+
*/
|
|
24
32
|
export let UmbFileSystemTreeItemElement = class UmbFileSystemTreeItemElement extends UmbLitElement {
|
|
25
33
|
get item() {
|
|
26
34
|
return this._item;
|
|
@@ -28,6 +36,7 @@ export let UmbFileSystemTreeItemElement = class UmbFileSystemTreeItemElement ext
|
|
|
28
36
|
set item(value) {
|
|
29
37
|
this._item = value;
|
|
30
38
|
this.#context.setTreeItem(value);
|
|
39
|
+
this.#context.checkIfIsFolder();
|
|
31
40
|
}
|
|
32
41
|
#context = new UmbFileSystemTreeItemContext(this);
|
|
33
42
|
render() {
|
|
@@ -29,19 +29,27 @@ export let UmbWorkspaceActionElement = class UmbWorkspaceActionElement extends U
|
|
|
29
29
|
}
|
|
30
30
|
#api;
|
|
31
31
|
async _onClick() {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
this._buttonState = 'waiting';
|
|
33
|
+
try {
|
|
34
|
+
if (!this.#api)
|
|
35
|
+
throw new Error('No api defined');
|
|
36
|
+
await this.#api.execute();
|
|
37
|
+
this._buttonState = 'success';
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
this._buttonState = 'failed';
|
|
41
|
+
}
|
|
35
42
|
this.dispatchEvent(new UmbExecutedEvent());
|
|
36
43
|
}
|
|
37
44
|
render() {
|
|
38
45
|
return html `
|
|
39
46
|
<uui-button
|
|
47
|
+
id="action-button"
|
|
40
48
|
@click=${this._onClick}
|
|
41
49
|
look=${this.manifest?.meta.look || 'default'}
|
|
42
50
|
color=${this.manifest?.meta.color || 'default'}
|
|
43
51
|
label=${this.manifest?.meta.label || ''}
|
|
44
|
-
.state
|
|
52
|
+
.state=${this._buttonState}></uui-button>
|
|
45
53
|
`;
|
|
46
54
|
}
|
|
47
55
|
static { this.styles = [UUITextStyles, css ``]; }
|
|
@@ -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 = {
|
package/dist-cms/packages/settings/dashboards/published-status/dashboard-published-status.element.js
CHANGED
|
@@ -56,7 +56,7 @@ export let UmbDashboardPublishedStatusElement = class UmbDashboardPublishedStatu
|
|
|
56
56
|
async _onReloadCacheHandler() {
|
|
57
57
|
const modalContext = this._modalContext?.open(UMB_CONFIRM_MODAL, {
|
|
58
58
|
headline: 'Reload',
|
|
59
|
-
content: html ` Trigger a in-memory and local file cache reload on all servers
|
|
59
|
+
content: html ` Trigger a in-memory and local file cache reload on all servers.`,
|
|
60
60
|
color: 'danger',
|
|
61
61
|
confirmLabel: 'Continue',
|
|
62
62
|
});
|
|
@@ -88,6 +88,7 @@ export let UmbDashboardPublishedStatusElement = class UmbDashboardPublishedStatu
|
|
|
88
88
|
}
|
|
89
89
|
//Collect
|
|
90
90
|
async _cacheCollect() {
|
|
91
|
+
this._buttonStateCollect = 'waiting';
|
|
91
92
|
const { error } = await tryExecuteAndNotify(this, PublishedCacheResource.postPublishedCacheCollect());
|
|
92
93
|
if (error) {
|
|
93
94
|
this._buttonStateCollect = 'failed';
|
|
@@ -97,8 +98,15 @@ export let UmbDashboardPublishedStatusElement = class UmbDashboardPublishedStatu
|
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
async _onSnapshotCacheHandler() {
|
|
100
|
-
this.
|
|
101
|
-
|
|
101
|
+
const modalContex = this._modalContext?.open(UMB_CONFIRM_MODAL, {
|
|
102
|
+
headline: 'Snapshot',
|
|
103
|
+
content: html ` Trigger a NuCache snapshots collection.`,
|
|
104
|
+
color: 'danger',
|
|
105
|
+
confirmLabel: 'Continue',
|
|
106
|
+
});
|
|
107
|
+
modalContex?.onSubmit().then(() => {
|
|
108
|
+
this._cacheCollect();
|
|
109
|
+
});
|
|
102
110
|
}
|
|
103
111
|
render() {
|
|
104
112
|
return html `
|
package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js
CHANGED
|
@@ -4,8 +4,8 @@ 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 { UmbDictionaryRepository } from '../../../dictionary/dictionary/index.js';
|
|
7
8
|
import { UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS } from '../../modals/manifests.js';
|
|
8
|
-
import { UmbDictionaryRepository } from '../../../translation/dictionary/repository/dictionary.repository.js';
|
|
9
9
|
import { getInsertDictionarySnippet, getInsertPartialSnippet } from '../../utils.js';
|
|
10
10
|
import { CodeSnippetType } from '../../modals/insert-choose-type-sidebar.element.js';
|
|
11
11
|
import { customElement, property, css, html } from '../../../../external/lit/index.js';
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare const manifests: (import("../core/index.js").ManifestEntityAction | import("../core/index.js").ManifestMenu | import("../core/index.js").ManifestMenuItemTreeKind | import("../core/index.js").ManifestModal | import("../core/index.js").ManifestRepository | import("../core/index.js").ManifestSectionSidebarApp | import("../core/index.js").ManifestStore | import("../core/index.js").ManifestTreeStore | import("../core/index.js").ManifestItemStore | import("../core/index.js").ManifestTree | import("../core/index.js").ManifestTreeItem | import("../core/index.js").ManifestWorkspace | import("../core/index.js").ManifestWorkspaceAction | import("../core/index.js").ManifestWorkspaceEditorView
|
|
1
|
+
export declare const manifests: (import("../core/index.js").ManifestEntityAction | import("../core/index.js").ManifestMenu | import("../core/index.js").ManifestMenuItemTreeKind | import("../core/index.js").ManifestModal | import("../core/index.js").ManifestRepository | import("../core/index.js").ManifestSectionSidebarApp | import("../core/index.js").ManifestStore | import("../core/index.js").ManifestTreeStore | import("../core/index.js").ManifestItemStore | import("../core/index.js").ManifestTree | import("../core/index.js").ManifestTreeItem | import("../core/index.js").ManifestWorkspace | import("../core/index.js").ManifestWorkspaceAction | import("../core/index.js").ManifestWorkspaceEditorView | {
|
|
2
|
+
type: string;
|
|
3
|
+
alias: string;
|
|
4
|
+
name: string;
|
|
5
|
+
loader: () => Promise<typeof import("./partial-views/entity-actions/create/create-from-snippet.modal.js")>;
|
|
6
|
+
})[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
content: string;
|
|
4
|
-
}
|
|
1
|
+
import { PartialViewResponseModel } from '../../../external/backend-api/index.js';
|
|
2
|
+
export type PartialViewDetails = PartialViewResponseModel;
|
|
5
3
|
export declare const PARTIAL_VIEW_ENTITY_TYPE = "partial-view";
|
|
6
|
-
export declare const
|
|
4
|
+
export declare const PARTIAL_VIEW_ROOT_ENTITY_TYPE = "partial-view-root";
|
|
5
|
+
export declare const PARTIAL_VIEW_FOLDER_ENTITY_TYPE = "partial-view-folder";
|
|
6
|
+
export declare const PARTIAL_VIEW_FOLDER_EMPTY_ENTITY_TYPE = "partial-view-folder-empty";
|
|
7
7
|
export declare const PARTIAL_VIEW_REPOSITORY_ALIAS = "Umb.Repository.PartialViews";
|
|
8
8
|
export declare const PARTIAL_VIEW_TREE_ALIAS = "Umb.Tree.PartialViews";
|
|
9
9
|
export declare const UMB_PARTIAL_VIEW_TREE_STORE_CONTEXT_TOKEN_ALIAS = "Umb.Store.PartialViews.Tree";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export const PARTIAL_VIEW_ENTITY_TYPE = 'partial-view';
|
|
2
|
-
export const
|
|
2
|
+
export const PARTIAL_VIEW_ROOT_ENTITY_TYPE = 'partial-view-root';
|
|
3
|
+
export const PARTIAL_VIEW_FOLDER_ENTITY_TYPE = 'partial-view-folder';
|
|
4
|
+
export const PARTIAL_VIEW_FOLDER_EMPTY_ENTITY_TYPE = 'partial-view-folder-empty';
|
|
3
5
|
export const PARTIAL_VIEW_REPOSITORY_ALIAS = 'Umb.Repository.PartialViews';
|
|
4
6
|
export const PARTIAL_VIEW_TREE_ALIAS = 'Umb.Tree.PartialViews';
|
|
5
7
|
export const UMB_PARTIAL_VIEW_TREE_STORE_CONTEXT_TOKEN_ALIAS = 'Umb.Store.PartialViews.Tree';
|
package/dist-cms/packages/templating/partial-views/entity-actions/create/create-empty.action.js
CHANGED
|
@@ -4,6 +4,6 @@ export class UmbCreateEmptyPartialViewAction extends UmbEntityActionBase {
|
|
|
4
4
|
super(host, repositoryAlias, unique);
|
|
5
5
|
}
|
|
6
6
|
async execute() {
|
|
7
|
-
|
|
7
|
+
history.pushState(null, '', `section/settings/workspace/partial-view/create/${this.unique ?? 'null'}/Empty`);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
import { UmbPartialViewsRepository } from '../../repository/index.js';
|
|
1
2
|
import { UmbEntityActionBase } from '../../../../core/entity-action/index.js';
|
|
2
3
|
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
4
|
+
import { UmbModalToken } from '../../../../core/modal/index.js';
|
|
5
|
+
import { SnippetItemResponseModel } from '../../../../../external/backend-api/index.js';
|
|
6
|
+
export interface UmbCreateFromSnippetPartialViewModalData {
|
|
7
|
+
snippets: SnippetItemResponseModel[];
|
|
8
|
+
}
|
|
9
|
+
export type UmbConfirmModalResult = undefined;
|
|
10
|
+
export declare const UMB_PARTIAL_VIEW_FROM_SNIPPET_MODAL: UmbModalToken<UmbCreateFromSnippetPartialViewModalData, string>;
|
|
3
11
|
export declare class UmbCreateFromSnippetPartialViewAction<T extends {
|
|
4
12
|
copy(): Promise<void>;
|
|
5
|
-
}> extends UmbEntityActionBase<
|
|
13
|
+
}> extends UmbEntityActionBase<UmbPartialViewsRepository> {
|
|
14
|
+
#private;
|
|
6
15
|
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
7
16
|
execute(): Promise<void>;
|
|
8
17
|
}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { UmbEntityActionBase } from '../../../../core/entity-action/index.js';
|
|
2
|
+
import { UmbContextConsumerController } from '../../../../../libs/context-api/index.js';
|
|
3
|
+
import { UMB_MODAL_MANAGER_CONTEXT_TOKEN, UmbModalToken } from '../../../../core/modal/index.js';
|
|
4
|
+
export const UMB_PARTIAL_VIEW_FROM_SNIPPET_MODAL = new UmbModalToken('Umb.Modal.CreateFromSnippetPartialView', {
|
|
5
|
+
type: 'sidebar',
|
|
6
|
+
});
|
|
2
7
|
export class UmbCreateFromSnippetPartialViewAction extends UmbEntityActionBase {
|
|
3
8
|
constructor(host, repositoryAlias, unique) {
|
|
4
9
|
super(host, repositoryAlias, unique);
|
|
10
|
+
new UmbContextConsumerController(this.host, UMB_MODAL_MANAGER_CONTEXT_TOKEN, (instance) => {
|
|
11
|
+
this.#modalContext = instance;
|
|
12
|
+
});
|
|
5
13
|
}
|
|
14
|
+
#modalContext;
|
|
6
15
|
async execute() {
|
|
7
|
-
|
|
16
|
+
const snippets = (await this.repository?.getSnippets({}))?.data?.items ?? [];
|
|
17
|
+
const modalContext = this.#modalContext?.open(UMB_PARTIAL_VIEW_FROM_SNIPPET_MODAL, {
|
|
18
|
+
snippets,
|
|
19
|
+
});
|
|
20
|
+
await modalContext?.onSubmit().then((snippetName) => {
|
|
21
|
+
history.pushState(null, '', `section/settings/workspace/partial-view/create/${this.unique ?? 'null'}/${snippetName}`);
|
|
22
|
+
});
|
|
8
23
|
}
|
|
9
24
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UmbCreateFromSnippetPartialViewModalData } from './create-from-snippet.action.js';
|
|
2
|
+
import { UmbModalBaseElement } from '../../../../../shared/modal/index.js';
|
|
3
|
+
import { SnippetItemResponseModel } from '../../../../../external/backend-api/index.js';
|
|
4
|
+
export default class UmbPartialViewCreateFromSnippetModalElement extends UmbModalBaseElement<UmbCreateFromSnippetPartialViewModalData, string> {
|
|
5
|
+
_snippets: Array<SnippetItemResponseModel>;
|
|
6
|
+
connectedCallback(): void;
|
|
7
|
+
private _submit;
|
|
8
|
+
private _close;
|
|
9
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
10
|
+
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface HTMLElementTagNameMap {
|
|
14
|
+
'umb-partial-view-create-from-snippet-modal': UmbPartialViewCreateFromSnippetModalElement;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { UUITextStyles } from '../../../../../external/uui/index.js';
|
|
8
|
+
import { css, html, customElement, state } from '../../../../../external/lit/index.js';
|
|
9
|
+
import { UmbModalBaseElement } from '../../../../../shared/modal/index.js';
|
|
10
|
+
let UmbPartialViewCreateFromSnippetModalElement = class UmbPartialViewCreateFromSnippetModalElement extends UmbModalBaseElement {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this._snippets = [];
|
|
14
|
+
}
|
|
15
|
+
connectedCallback() {
|
|
16
|
+
super.connectedCallback();
|
|
17
|
+
this._snippets = this.data?.snippets ?? [];
|
|
18
|
+
}
|
|
19
|
+
_submit(snippetName) {
|
|
20
|
+
this.modalContext?.submit(snippetName);
|
|
21
|
+
}
|
|
22
|
+
_close() {
|
|
23
|
+
this.modalContext?.reject();
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
return html `
|
|
27
|
+
<umb-body-layout headline="Create partial view from snippet">
|
|
28
|
+
<div id="main">
|
|
29
|
+
<uui-box>
|
|
30
|
+
${this._snippets.map((snippet) => html `<uui-menu-item label="${snippet.name ?? ''}" @click-label=${() => this._submit(snippet.name ?? '')}
|
|
31
|
+
><uui-icon name="umb:article" slot="icon"></uui-icon
|
|
32
|
+
></uui-menu-item>`)}
|
|
33
|
+
</uui-box>
|
|
34
|
+
</div>
|
|
35
|
+
<div slot="actions">
|
|
36
|
+
<uui-button @click=${this._close} look="secondary">Close</uui-button>
|
|
37
|
+
</div>
|
|
38
|
+
</umb-body-layout>
|
|
39
|
+
`;
|
|
40
|
+
}
|
|
41
|
+
static { this.styles = [
|
|
42
|
+
UUITextStyles,
|
|
43
|
+
css `
|
|
44
|
+
:host {
|
|
45
|
+
display: block;
|
|
46
|
+
color: var(--uui-color-text);
|
|
47
|
+
--umb-header-layout-height: 70px;
|
|
48
|
+
}
|
|
49
|
+
#main {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
height: calc(
|
|
52
|
+
100dvh - var(--umb-header-layout-height) - var(--umb-footer-layout-height) - 2 * var(--uui-size-layout-1)
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#main uui-button {
|
|
57
|
+
width: 100%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
h3,
|
|
61
|
+
p {
|
|
62
|
+
text-align: left;
|
|
63
|
+
}
|
|
64
|
+
`,
|
|
65
|
+
]; }
|
|
66
|
+
};
|
|
67
|
+
__decorate([
|
|
68
|
+
state()
|
|
69
|
+
], UmbPartialViewCreateFromSnippetModalElement.prototype, "_snippets", void 0);
|
|
70
|
+
UmbPartialViewCreateFromSnippetModalElement = __decorate([
|
|
71
|
+
customElement('umb-partial-view-create-from-snippet-modal')
|
|
72
|
+
], UmbPartialViewCreateFromSnippetModalElement);
|
|
73
|
+
export default UmbPartialViewCreateFromSnippetModalElement;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { ManifestEntityAction } from '../../../core/extension-registry/index.js';
|
|
2
|
-
export declare const manifests: ManifestEntityAction
|
|
2
|
+
export declare const manifests: (ManifestEntityAction | {
|
|
3
|
+
type: string;
|
|
4
|
+
alias: string;
|
|
5
|
+
name: string;
|
|
6
|
+
loader: () => Promise<typeof import("./create/create-from-snippet.modal.js")>;
|
|
7
|
+
})[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PARTIAL_VIEW_ENTITY_TYPE, PARTIAL_VIEW_FOLDER_ENTITY_TYPE, PARTIAL_VIEW_REPOSITORY_ALIAS } from '../config.js';
|
|
1
|
+
import { PARTIAL_VIEW_ENTITY_TYPE, PARTIAL_VIEW_FOLDER_EMPTY_ENTITY_TYPE, PARTIAL_VIEW_FOLDER_ENTITY_TYPE, PARTIAL_VIEW_REPOSITORY_ALIAS, PARTIAL_VIEW_ROOT_ENTITY_TYPE, } from '../config.js';
|
|
2
2
|
import { UmbCreateFromSnippetPartialViewAction } from './create/create-from-snippet.action.js';
|
|
3
3
|
import { UmbCreateEmptyPartialViewAction } from './create/create-empty.action.js';
|
|
4
|
-
import { UmbDeleteEntityAction } from '../../../core/entity-action/index.js';
|
|
4
|
+
import { UmbCreateFolderEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, } from '../../../core/entity-action/index.js';
|
|
5
5
|
//TODO: this is temporary until we have a proper way of registering actions for folder types in a specific tree
|
|
6
6
|
//Actions for partial view files
|
|
7
7
|
const partialViewActions = [
|
|
@@ -34,7 +34,7 @@ const partialViewFolderActions = [
|
|
|
34
34
|
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
|
35
35
|
},
|
|
36
36
|
conditions: {
|
|
37
|
-
entityTypes: [PARTIAL_VIEW_FOLDER_ENTITY_TYPE],
|
|
37
|
+
entityTypes: [PARTIAL_VIEW_FOLDER_ENTITY_TYPE, PARTIAL_VIEW_ROOT_ENTITY_TYPE],
|
|
38
38
|
},
|
|
39
39
|
},
|
|
40
40
|
{
|
|
@@ -48,8 +48,46 @@ const partialViewFolderActions = [
|
|
|
48
48
|
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
|
49
49
|
},
|
|
50
50
|
conditions: {
|
|
51
|
-
entityTypes: [PARTIAL_VIEW_FOLDER_ENTITY_TYPE],
|
|
51
|
+
entityTypes: [PARTIAL_VIEW_FOLDER_ENTITY_TYPE, PARTIAL_VIEW_ROOT_ENTITY_TYPE],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
type: 'entityAction',
|
|
56
|
+
alias: 'Umb.EntityAction.PartialViewFolder.DeleteFolder',
|
|
57
|
+
name: 'Remove empty folder',
|
|
58
|
+
meta: {
|
|
59
|
+
icon: 'umb:trash',
|
|
60
|
+
label: 'Remove folder',
|
|
61
|
+
api: UmbDeleteFolderEntityAction,
|
|
62
|
+
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
|
63
|
+
},
|
|
64
|
+
conditions: {
|
|
65
|
+
entityTypes: [PARTIAL_VIEW_FOLDER_EMPTY_ENTITY_TYPE],
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'entityAction',
|
|
70
|
+
alias: 'Umb.EntityAction.PartialViewFolder.CreateFolder',
|
|
71
|
+
name: 'Create empty folder',
|
|
72
|
+
meta: {
|
|
73
|
+
icon: 'umb:add',
|
|
74
|
+
label: 'Create folder',
|
|
75
|
+
api: UmbCreateFolderEntityAction,
|
|
76
|
+
repositoryAlias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
|
77
|
+
},
|
|
78
|
+
conditions: {
|
|
79
|
+
entityTypes: [
|
|
80
|
+
PARTIAL_VIEW_FOLDER_EMPTY_ENTITY_TYPE,
|
|
81
|
+
PARTIAL_VIEW_FOLDER_ENTITY_TYPE,
|
|
82
|
+
PARTIAL_VIEW_ROOT_ENTITY_TYPE,
|
|
83
|
+
],
|
|
52
84
|
},
|
|
53
85
|
},
|
|
54
86
|
];
|
|
55
|
-
|
|
87
|
+
const createFromSnippetActionModal = {
|
|
88
|
+
type: 'modal',
|
|
89
|
+
alias: 'Umb.Modal.CreateFromSnippetPartialView',
|
|
90
|
+
name: 'Choose insert type sidebar',
|
|
91
|
+
loader: () => import('./create/create-from-snippet.modal.js'),
|
|
92
|
+
};
|
|
93
|
+
export const manifests = [...partialViewActions, ...partialViewFolderActions, createFromSnippetActionModal];
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare const manifests: (import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestRepository | import("../../core/index.js").ManifestStore | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction
|
|
1
|
+
export declare const manifests: (import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestRepository | import("../../core/index.js").ManifestStore | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction | {
|
|
2
|
+
type: string;
|
|
3
|
+
alias: string;
|
|
4
|
+
name: string;
|
|
5
|
+
loader: () => Promise<typeof import("./entity-actions/create/create-from-snippet.modal.js")>;
|
|
6
|
+
})[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UmbPartialViewsRepository } from '../repository/partial-views.repository.js';
|
|
2
2
|
import { PARTIAL_VIEW_REPOSITORY_ALIAS } from '../config.js';
|
|
3
3
|
import { UmbPartialViewsTreeStore } from './partial-views.tree.store.js';
|
|
4
4
|
import { UmbPartialViewsStore } from './partial-views.store.js';
|
|
@@ -6,7 +6,7 @@ const repository = {
|
|
|
6
6
|
type: 'repository',
|
|
7
7
|
alias: PARTIAL_VIEW_REPOSITORY_ALIAS,
|
|
8
8
|
name: 'Partial Views Repository',
|
|
9
|
-
class:
|
|
9
|
+
class: UmbPartialViewsRepository,
|
|
10
10
|
};
|
|
11
11
|
export const PARTIAL_VIEW_STORE_ALIAS = 'Umb.Store.PartialViews';
|
|
12
12
|
export const PARTIAL_VIEW_TREE_STORE_ALIAS = 'Umb.Store.PartialViewsTree';
|
|
@@ -1,35 +1,49 @@
|
|
|
1
|
+
import { PartialViewGetFolderResponse } from './sources/partial-views.folder.server.data.js';
|
|
1
2
|
import { Observable } from '../../../../external/rxjs/index.js';
|
|
2
3
|
import { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
3
|
-
import { ProblemDetails } from '../../../../external/backend-api/index.js';
|
|
4
|
-
import { UmbDetailRepository, UmbTreeRepository } from '../../../../shared/repository/index.js';
|
|
5
|
-
|
|
6
|
-
export declare class UmbTemplateRepository implements UmbTreeRepository<any>, UmbDetailRepository<any> {
|
|
4
|
+
import { CreateFolderRequestModel, CreatePartialViewRequestModel, FileSystemTreeItemPresentationModel, FolderModelBaseModel, FolderReponseModel, PagedSnippetItemResponseModel, PartialViewItemResponseModel, PartialViewResponseModel, ProblemDetails, TextFileResponseModelBaseModel, UpdatePartialViewRequestModel } from '../../../../external/backend-api/index.js';
|
|
5
|
+
import { DataSourceResponse, UmbDataSourceErrorResponse, UmbDetailRepository, UmbFolderRepository, UmbTreeRepository } from '../../../../shared/repository/index.js';
|
|
6
|
+
export declare class UmbPartialViewsRepository implements UmbTreeRepository<FileSystemTreeItemPresentationModel>, UmbDetailRepository<CreatePartialViewRequestModel, string, UpdatePartialViewRequestModel, PartialViewResponseModel, string>, UmbFolderRepository {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(host: UmbControllerHostElement);
|
|
9
|
-
|
|
10
|
-
data?:
|
|
9
|
+
createFolderScaffold(parentId: string | null): Promise<{
|
|
10
|
+
data?: FolderReponseModel | undefined;
|
|
11
11
|
error?: ProblemDetails | undefined;
|
|
12
12
|
}>;
|
|
13
|
-
|
|
14
|
-
data?:
|
|
13
|
+
createFolder(requestBody: CreateFolderRequestModel): Promise<{
|
|
14
|
+
data?: string | undefined;
|
|
15
15
|
error?: ProblemDetails | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
}>;
|
|
17
|
+
requestFolder(unique: string): Promise<{
|
|
18
|
+
data?: PartialViewGetFolderResponse | undefined;
|
|
19
|
+
error?: ProblemDetails | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
updateFolder(unique: string, folder: FolderModelBaseModel): Promise<{
|
|
22
|
+
data?: FolderModelBaseModel | undefined;
|
|
23
|
+
error?: ProblemDetails | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
deleteFolder(path: string): Promise<{
|
|
22
26
|
error?: ProblemDetails | undefined;
|
|
23
27
|
}>;
|
|
28
|
+
requestTreeRoot(): Promise<{
|
|
29
|
+
data: {
|
|
30
|
+
id: null;
|
|
31
|
+
path: null;
|
|
32
|
+
type: string;
|
|
33
|
+
name: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
hasChildren: boolean;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
24
38
|
requestRootTreeItems(): Promise<{
|
|
25
39
|
data: import("../../../../external/backend-api/index.js").PagedFileSystemTreeItemPresentationModel | undefined;
|
|
26
40
|
error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
|
|
27
|
-
asObservable: () => Observable<
|
|
41
|
+
asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
|
|
28
42
|
}>;
|
|
29
43
|
requestTreeItemsOf(path: string | null): Promise<{
|
|
30
44
|
data: any;
|
|
31
45
|
error: any;
|
|
32
|
-
asObservable: () => Observable<
|
|
46
|
+
asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
|
|
33
47
|
}>;
|
|
34
48
|
requestTreeItems(keys: Array<string>): Promise<{
|
|
35
49
|
data: undefined;
|
|
@@ -38,17 +52,24 @@ export declare class UmbTemplateRepository implements UmbTreeRepository<any>, Um
|
|
|
38
52
|
} | {
|
|
39
53
|
data: any;
|
|
40
54
|
error: any;
|
|
41
|
-
asObservable: () => Observable<
|
|
55
|
+
asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
|
|
42
56
|
}>;
|
|
43
|
-
rootTreeItems(): Promise<Observable<
|
|
44
|
-
treeItemsOf(parentPath: string | null): Promise<Observable<
|
|
45
|
-
treeItems(paths: Array<string>): Promise<Observable<
|
|
57
|
+
rootTreeItems(): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
|
|
58
|
+
treeItemsOf(parentPath: string | null): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
|
|
59
|
+
treeItems(paths: Array<string>): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
|
|
46
60
|
requestByKey(path: string): Promise<{
|
|
47
|
-
data: undefined;
|
|
48
|
-
error: undefined;
|
|
61
|
+
data: TextFileResponseModelBaseModel | undefined;
|
|
62
|
+
error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
|
|
49
63
|
}>;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
64
|
+
requestById(id: string): Promise<DataSourceResponse<any>>;
|
|
65
|
+
byId(id: string): Promise<Observable<any>>;
|
|
66
|
+
createScaffold(parentId: string | null, preset: string): Promise<DataSourceResponse<TextFileResponseModelBaseModel>>;
|
|
67
|
+
create(data: CreatePartialViewRequestModel): Promise<DataSourceResponse<any>>;
|
|
68
|
+
save(id: string, requestBody: UpdatePartialViewRequestModel): Promise<UmbDataSourceErrorResponse>;
|
|
69
|
+
delete(id: string): Promise<UmbDataSourceErrorResponse>;
|
|
70
|
+
getSnippets({ skip, take }: {
|
|
71
|
+
skip?: number | undefined;
|
|
72
|
+
take?: number | undefined;
|
|
73
|
+
}): Promise<DataSourceResponse<PagedSnippetItemResponseModel>>;
|
|
74
|
+
requestItems(keys: Array<string>): Promise<DataSourceResponse<PartialViewItemResponseModel[]>>;
|
|
54
75
|
}
|