@umbraco-cms/backoffice 14.0.0-9cc9c792 → 14.0.0-a0074b6e
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.d.ts +6 -0
- package/dist-cms/apps/backoffice/backoffice.element.js +14 -3
- package/dist-cms/apps/backoffice/{extension-initializer.controller.d.ts → server-extension-registrator.controller.d.ts} +1 -4
- package/dist-cms/apps/backoffice/{extension-initializer.controller.js → server-extension-registrator.controller.js} +4 -22
- package/dist-cms/custom-elements.json +917 -920
- package/dist-cms/external/uui/index.js +291 -250
- package/dist-cms/libs/extension-api/bundle-extension-initializer.d.ts +2 -2
- package/dist-cms/libs/extension-api/bundle-extension-initializer.js +4 -2
- package/dist-cms/libs/extension-api/entry-point-extension-initializer.d.ts +2 -1
- package/dist-cms/libs/extension-api/entry-point-extension-initializer.js +4 -2
- package/dist-cms/mocks/data/stylesheet.data.d.ts +27 -5
- package/dist-cms/mocks/data/stylesheet.data.js +197 -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/manifests.handlers.js +12 -0
- package/dist-cms/mocks/handlers/stylesheet.handlers.js +97 -1
- package/dist-cms/packages/core/collection/collection-selection-actions.element.js +3 -3
- package/dist-cms/packages/core/components/index.d.ts +0 -1
- package/dist-cms/packages/core/components/index.js +0 -1
- package/dist-cms/packages/core/components/input-tiny-mce/input-tiny-mce.element.d.ts +2 -2
- package/dist-cms/packages/core/components/input-tiny-mce/tiny-mce-plugin.d.ts +3 -2
- package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.d.ts +5 -24
- package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.js +12 -66
- package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.d.ts +0 -16
- package/dist-cms/packages/core/components/property-type-based-property/property-type-based-property.element.js +4 -44
- package/dist-cms/packages/core/components/variant-selector/variant-selector.element.d.ts +2 -3
- package/dist-cms/packages/core/components/variant-selector/variant-selector.element.js +25 -27
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.d.ts +4 -0
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +45 -0
- package/dist-cms/packages/core/extension-registry/interfaces/property-editor-ui-extension-element.interface.d.ts +2 -2
- package/dist-cms/packages/core/extension-registry/models/property-editor.model.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/config/index.d.ts +2 -0
- package/dist-cms/packages/core/property-editor/config/index.js +2 -0
- package/dist-cms/packages/core/{components/data-type/data-type-property-collection.class.d.ts → property-editor/config/property-editor-config-collection.class.d.ts} +4 -4
- package/dist-cms/packages/core/{components/data-type/data-type-property-collection.class.js → property-editor/config/property-editor-config-collection.class.js} +1 -1
- package/dist-cms/packages/core/property-editor/config/property-editor-config.type.d.ts +3 -0
- package/dist-cms/packages/core/property-editor/index.d.ts +1 -1
- package/dist-cms/packages/core/property-editor/index.js +1 -1
- package/dist-cms/packages/core/property-editor/uis/block-grid/property-editor-ui-block-grid.element.d.ts +2 -3
- package/dist-cms/packages/core/property-editor/uis/block-list/property-editor-ui-block-list.element.d.ts +3 -3
- package/dist-cms/packages/core/property-editor/uis/checkbox-list/property-editor-ui-checkbox-list.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/color-picker/property-editor-ui-color-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/date-picker/property-editor-ui-date-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/eye-dropper/property-editor-ui-eye-dropper.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/icon-picker/property-editor-ui-icon-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/image-cropper/property-editor-ui-image-cropper.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/label/property-editor-ui-label.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/markdown-editor/property-editor-ui-markdown-editor.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/media-picker/property-editor-ui-media-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/member-group-picker/property-editor-ui-member-group-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/member-picker/property-editor-ui-member-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/number/property-editor-ui-number.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/number-range/property-editor-ui-number-range.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/order-direction/property-editor-ui-order-direction.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/overlay-size/property-editor-ui-overlay-size.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/radio-button-list/property-editor-ui-radio-button-list.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/slider/property-editor-ui-slider.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/text-box/property-editor-ui-text-box.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/textarea/property-editor-ui-textarea.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/tiny-mce/property-editor-ui-tiny-mce.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/toggle/property-editor-ui-toggle.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/tree-picker/property-editor-ui-tree-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/upload-field/property-editor-ui-upload-field.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/user-picker/property-editor-ui-user-picker.element.d.ts +2 -2
- package/dist-cms/packages/core/property-editor/uis/value-type/property-editor-ui-value-type.element.d.ts +2 -2
- package/dist-cms/packages/core/repositories/index.d.ts +1 -0
- package/dist-cms/packages/core/repositories/index.js +1 -0
- package/dist-cms/packages/core/repositories/repository.interface.d.ts +10 -0
- package/dist-cms/packages/core/variant/variant-id.class.d.ts +5 -0
- package/dist-cms/packages/core/variant/variant-id.class.js +16 -2
- package/dist-cms/packages/core/workspace/index.d.ts +3 -2
- package/dist-cms/packages/core/workspace/index.js +3 -2
- package/dist-cms/packages/core/workspace/types/workspace-property-data.type.d.ts +2 -2
- package/dist-cms/packages/core/workspace/variant-context/index.d.ts +5 -0
- package/dist-cms/packages/core/workspace/variant-context/index.js +5 -0
- package/dist-cms/packages/core/workspace/variant-context/invariant-workspace-variant-context.d.ts +28 -0
- package/dist-cms/packages/core/workspace/variant-context/invariant-workspace-variant-context.js +48 -0
- package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.interface.d.ts +7 -0
- package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.token.d.ts +5 -0
- package/dist-cms/packages/core/workspace/variant-context/nameable-variant-context.token.js +3 -0
- package/dist-cms/packages/core/workspace/variant-context/variant-context.interface.d.ts +26 -0
- package/dist-cms/packages/core/workspace/variant-context/variant-context.token.d.ts +3 -0
- package/dist-cms/packages/core/workspace/variant-context/variant-context.token.js +2 -0
- package/dist-cms/packages/core/workspace/workspace-context/index.d.ts +7 -4
- package/dist-cms/packages/core/workspace/workspace-context/index.js +7 -4
- package/dist-cms/packages/core/workspace/workspace-context/property-structure-workspace-context.interface.d.ts +6 -0
- package/dist-cms/packages/core/workspace/workspace-context/publishable-workspace-context.interface.d.ts +4 -0
- package/dist-cms/packages/core/workspace/workspace-context/publishable-workspace-context.interface.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-context/saveable-workspace-context.interface.d.ts +4 -0
- package/dist-cms/packages/core/workspace/workspace-context/saveable-workspace-context.interface.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-context/variant-workspace-context.token.d.ts +5 -0
- package/dist-cms/packages/core/workspace/workspace-context/variant-workspace-context.token.js +2 -0
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.d.ts +2 -2
- package/dist-cms/packages/core/workspace/workspace-context/workspace-context.interface.d.ts +5 -7
- package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.d.ts +13 -0
- package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-context.interface.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-context/workspace-variantable-context.interface.d.ts +18 -0
- package/dist-cms/packages/core/workspace/workspace-context/workspace-variantable-context.interface.js +1 -0
- package/dist-cms/packages/core/workspace/workspace-editor/workspace-editor.element.js +1 -1
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.d.ts +8 -8
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.js +49 -35
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.d.ts +2 -19
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.js +3 -30
- package/dist-cms/packages/core/workspace/workspace-split-view/index.d.ts +2 -0
- package/dist-cms/packages/core/workspace/workspace-split-view/index.js +2 -0
- package/dist-cms/packages/core/workspace/workspace-split-view/workspace-split-view.context.d.ts +16 -0
- package/dist-cms/packages/core/workspace/workspace-split-view/workspace-split-view.context.js +66 -0
- package/dist-cms/packages/core/workspace/{workspace-variant/workspace-variant.element.d.ts → workspace-split-view/workspace-split-view.element.d.ts} +5 -6
- package/dist-cms/packages/core/workspace/{workspace-variant/workspace-variant.element.js → workspace-split-view/workspace-split-view.element.js} +12 -18
- package/dist-cms/packages/dictionary/dictionary/workspace/dictionary-workspace.context.d.ts +3 -3
- package/dist-cms/packages/documents/document-types/workspace/document-type-workspace.context.d.ts +3 -3
- package/dist-cms/packages/documents/documents/property-editors/document-picker/property-editor-ui-document-picker.element.d.ts +2 -2
- package/dist-cms/packages/documents/documents/variant-context/document-variant-context.d.ts +35 -0
- package/dist-cms/packages/documents/documents/variant-context/document-variant-context.js +89 -0
- package/dist-cms/packages/documents/documents/variant-context/document-variant-context.token.d.ts +5 -0
- package/dist-cms/packages/documents/documents/variant-context/document-variant-context.token.js +3 -0
- package/dist-cms/packages/documents/documents/workspace/document-workspace-editor.element.js +1 -0
- package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.d.ts +0 -1
- package/dist-cms/packages/documents/documents/workspace/document-workspace-split-view.element.js +3 -5
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.d.ts +20 -11
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +57 -39
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit-properties.element.js +1 -1
- package/dist-cms/packages/documents/documents/workspace/views/edit/document-workspace-view-edit.element.js +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-chart.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-chart.element.js +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-slice.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/donut-slice.element.js +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-date-range-selector.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-date-range-selector.element.js +4 -4
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-too-many-logs-warning.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/components/log-viewer-too-many-logs-warning.element.js +1 -1
- package/dist-cms/packages/log-viewer/manifests.d.ts +1 -0
- package/dist-cms/packages/log-viewer/menu-item/manifests.d.ts +2 -0
- package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/log-viewer.repository.d.ts +8 -8
- package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/log-viewer.repository.js +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/sources/index.d.ts +2 -2
- package/dist-cms/packages/log-viewer/repository/sources/index.js +1 -0
- package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/sources/log-viewer.server.data.d.ts +11 -11
- package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/sources/log-viewer.server.data.js +2 -2
- package/dist-cms/packages/log-viewer/umbraco-package.d.ts +7 -0
- package/dist-cms/packages/log-viewer/umbraco-package.js +9 -0
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/logviewer-workspace.element.d.ts +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/logviewer-workspace.element.js +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/manifests.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer.context.d.ts +8 -8
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer.context.js +6 -6
- package/dist-cms/packages/log-viewer/workspace/manifests.d.ts +1 -0
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-level-overview.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-level-overview.element.js +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-types-chart.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-log-types-chart.element.js +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-message-templates-overview.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-message-templates-overview.element.js +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-saved-searches-overview.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/log-viewer-saved-searches-overview.element.js +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/log-overview-view.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/log-overview-view.element.js +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-level-tag.element.d.ts +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-level-tag.element.js +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-log-level-filter-menu.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-log-level-filter-menu.element.js +5 -5
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-message.element.d.ts +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-message.element.js +4 -4
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-messages-list.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-messages-list.element.js +3 -3
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-polling-button.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-polling-button.element.js +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input-modal.element.d.ts +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input-modal.element.js +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input.element.d.ts +2 -2
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/log-viewer-search-input.element.js +5 -5
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/log-search-view.element.d.ts +1 -1
- package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/log-search-view.element.js +3 -3
- package/dist-cms/packages/media/media/workspace/media-workspace.context.d.ts +3 -3
- package/dist-cms/packages/media/media-types/workspace/media-type-workspace.context.d.ts +3 -3
- package/dist-cms/packages/members/member-groups/workspace/member-group-workspace.context.d.ts +3 -3
- package/dist-cms/packages/members/member-types/workspace/member-type-workspace.context.d.ts +3 -3
- package/dist-cms/packages/members/members/workspace/member-workspace.context.d.ts +3 -3
- package/dist-cms/packages/search/manifests.js +5 -5
- package/dist-cms/packages/settings/data-types/index.d.ts +1 -0
- package/dist-cms/packages/settings/data-types/index.js +1 -0
- package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.d.ts +7 -0
- package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.js +8 -0
- package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.token.d.ts +5 -0
- package/dist-cms/packages/settings/data-types/variant-context/data-type-variant-context.token.js +3 -0
- package/dist-cms/packages/settings/data-types/variant-context/index.d.ts +2 -0
- package/dist-cms/packages/settings/data-types/variant-context/index.js +2 -0
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace-editor.element.js +1 -0
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.d.ts +29 -9
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.js +85 -4
- package/dist-cms/packages/settings/data-types/workspace/views/details/data-type-details-workspace-view.element.js +3 -3
- package/dist-cms/packages/settings/extensions/workspace/extension-root-workspace.element.js +1 -2
- package/dist-cms/packages/settings/languages/app-language-select/app-language-select.element.js +7 -6
- package/dist-cms/packages/settings/languages/workspace/language/language-workspace.context.d.ts +3 -3
- package/dist-cms/packages/settings/manifests.js +0 -2
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.context.d.ts +3 -3
- package/dist-cms/packages/tags/property-editors/tags/property-editor-ui-tags.element.d.ts +2 -2
- package/dist-cms/packages/templating/partial-views/workspace/manifests.js +1 -2
- package/dist-cms/packages/templating/partial-views/workspace/partial-view-workspace.context.d.ts +3 -3
- package/dist-cms/packages/templating/partial-views/workspace/partial-view-workspace.context.js +0 -1
- package/dist-cms/packages/templating/stylesheets/config.d.ts +10 -0
- package/dist-cms/packages/templating/stylesheets/config.js +10 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/create/create-rtf.action.d.ts +8 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/create/create-rtf.action.js +9 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/create/create.action.d.ts +8 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/create/create.action.js +9 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/manifests.d.ts +2 -0
- package/dist-cms/packages/templating/stylesheets/entity-actions/manifests.js +73 -0
- package/dist-cms/packages/templating/stylesheets/index.d.ts +2 -5
- package/dist-cms/packages/templating/stylesheets/index.js +0 -1
- package/dist-cms/packages/templating/stylesheets/manifests.d.ts +1 -1
- package/dist-cms/packages/templating/stylesheets/manifests.js +8 -1
- package/dist-cms/packages/templating/stylesheets/repository/manifests.d.ts +0 -3
- package/dist-cms/packages/templating/stylesheets/repository/manifests.js +1 -3
- package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.folder.server.data.d.ts +17 -0
- package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.folder.server.data.js +23 -0
- package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.server.data.d.ts +50 -6
- package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.server.data.js +58 -5
- package/dist-cms/packages/templating/stylesheets/repository/stylesheet.repository.d.ts +53 -12
- package/dist-cms/packages/templating/stylesheets/repository/stylesheet.repository.js +93 -10
- package/dist-cms/packages/templating/stylesheets/tree/manifests.js +1 -2
- package/dist-cms/packages/templating/stylesheets/workspace/manifests.d.ts +3 -2
- package/dist-cms/packages/templating/stylesheets/workspace/manifests.js +68 -3
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-editor.element.d.ts +17 -0
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-editor.element.js +107 -0
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.context.d.ts +23 -5
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.context.js +115 -6
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace.element.js +14 -4
- package/dist-cms/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.d.ts +16 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/code-editor/stylesheet-workspace-view-code-editor.element.js +95 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-rule.element.d.ts +16 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-rule.element.js +82 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-style-sidebar.element.d.ts +19 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor-style-sidebar.element.js +159 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor.element.d.ts +22 -0
- package/dist-cms/packages/templating/stylesheets/workspace/views/rich-text-editor/stylesheet-workspace-view-rich-text-editor.element.js +125 -0
- package/dist-cms/packages/templating/templates/workspace/template-workspace.context.d.ts +3 -3
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.d.ts +3 -3
- package/dist-cms/packages/users/user-groups/workspace/user-group-workspace.context.js +1 -1
- package/dist-cms/packages/users/users/modals/create/user-create-modal.element.js +1 -1
- package/dist-cms/packages/users/users/workspace/user-workspace.context.d.ts +3 -3
- package/dist-cms/shared/style/text-style.style.d.ts +1 -1
- package/dist-cms/shared/style/text-style.style.js +2 -2
- package/dist-cms/tsconfig.build.tsbuildinfo +1 -1
- package/dist-cms/vscode-html-custom-data.json +208 -223
- package/package.json +4 -4
- package/dist-cms/packages/core/components/data-type/index.d.ts +0 -1
- package/dist-cms/packages/core/components/data-type/index.js +0 -1
- package/dist-cms/packages/core/property-editor/types/data-type-config.type.d.ts +0 -3
- package/dist-cms/packages/core/property-editor/types/index.d.ts +0 -1
- package/dist-cms/packages/core/property-editor/types/index.js +0 -1
- package/dist-cms/packages/core/workspace/workspace-context/workspace-entity-context.interface.d.ts +0 -5
- package/dist-cms/packages/core/workspace/workspace-context/workspace-invariantable-entity-context.interface.d.ts +0 -11
- package/dist-cms/packages/core/workspace/workspace-context/workspace-variable-entity-context.interface.d.ts +0 -16
- package/dist-cms/packages/core/workspace/workspace-variant/index.d.ts +0 -3
- package/dist-cms/packages/core/workspace/workspace-variant/index.js +0 -3
- package/dist-cms/packages/core/workspace/workspace-variant/variantable-property/variantable-property.element.d.ts +0 -20
- package/dist-cms/packages/core/workspace/workspace-variant/variantable-property/variantable-property.element.js +0 -71
- package/dist-cms/packages/core/workspace/workspace-variant/workspace-variant.context.d.ts +0 -26
- package/dist-cms/packages/core/workspace/workspace-variant/workspace-variant.context.js +0 -89
- package/dist-cms/packages/settings/logviewer/manifests.d.ts +0 -1
- package/dist-cms/packages/settings/logviewer/menu-item/manifests.d.ts +0 -2
- package/dist-cms/packages/settings/logviewer/workspace/manifests.d.ts +0 -1
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-edit.element.d.ts +0 -11
- package/dist-cms/packages/templating/stylesheets/workspace/stylesheet-workspace-edit.element.js +0 -27
- /package/dist-cms/packages/core/property-editor/{types/data-type-config.type.js → config/property-editor-config.type.js} +0 -0
- /package/dist-cms/packages/core/{workspace/workspace-context/workspace-entity-context.interface.js → repositories/repository.interface.js} +0 -0
- /package/dist-cms/packages/core/workspace/{workspace-context/workspace-invariantable-entity-context.interface.js → variant-context/nameable-variant-context.interface.js} +0 -0
- /package/dist-cms/packages/core/workspace/{workspace-context/workspace-variable-entity-context.interface.js → variant-context/variant-context.interface.js} +0 -0
- /package/dist-cms/packages/{settings/logviewer/repository/sources/index.js → core/workspace/workspace-context/property-structure-workspace-context.interface.js} +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/donut-chart/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/components/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/manifests.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/menu-item/manifests.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/repository/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/logviewer/manifests.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/manifests.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/components/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/overview/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/components/index.js +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/index.d.ts +0 -0
- /package/dist-cms/packages/{settings/logviewer → log-viewer}/workspace/views/search/index.js +0 -0
package/dist-cms/packages/templating/partial-views/workspace/partial-view-workspace.context.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UmbPartialViewsRepository } from '../repository/partial-views.repository.js';
|
|
2
2
|
import { PartialViewDetails } from '../config.js';
|
|
3
3
|
import { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
4
|
-
import {
|
|
4
|
+
import { UmbSaveableWorkspaceContextInterface, UmbWorkspaceContext } from '../../../core/workspace/index.js';
|
|
5
5
|
import { UmbContextToken } from '../../../../libs/context-api/index.js';
|
|
6
|
-
export declare class UmbPartialViewWorkspaceContext extends UmbWorkspaceContext<UmbPartialViewsRepository, PartialViewDetails> implements
|
|
6
|
+
export declare class UmbPartialViewWorkspaceContext extends UmbWorkspaceContext<UmbPartialViewsRepository, PartialViewDetails> implements UmbSaveableWorkspaceContextInterface {
|
|
7
7
|
#private;
|
|
8
8
|
getEntityId(): string | undefined;
|
|
9
9
|
getEntityType(): string;
|
|
@@ -20,4 +20,4 @@ export declare class UmbPartialViewWorkspaceContext extends UmbWorkspaceContext<
|
|
|
20
20
|
load(entityKey: string): Promise<void>;
|
|
21
21
|
create(parentKey: string | null, name?: string): Promise<void>;
|
|
22
22
|
}
|
|
23
|
-
export declare const UMB_PARTIAL_VIEW_WORKSPACE_CONTEXT: UmbContextToken<
|
|
23
|
+
export declare const UMB_PARTIAL_VIEW_WORKSPACE_CONTEXT: UmbContextToken<UmbSaveableWorkspaceContextInterface<unknown>, UmbPartialViewWorkspaceContext>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const STYLESHEET_ENTITY_TYPE = "stylesheet";
|
|
2
|
+
export declare const STYLESHEET_ROOT_ENTITY_TYPE = "stylesheet-root";
|
|
3
|
+
export declare const STYLESHEET_FOLDER_ENTITY_TYPE = "stylesheet-folder";
|
|
4
|
+
export declare const STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE = "stylesheet-folder-empty";
|
|
5
|
+
export declare const STYLESHEET_REPOSITORY_ALIAS = "Umb.Repository.Stylesheet";
|
|
6
|
+
export declare const STYLESHEET_TREE_ALIAS = "Umb.Tree.Stylesheet";
|
|
7
|
+
export declare const UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN_ALIAS = "Umb.Store.Stylesheet.Tree";
|
|
8
|
+
export declare const UMB_STYLESHEET_STORE_CONTEXT_TOKEN_ALIAS = "Umb.Store.Stylesheet";
|
|
9
|
+
export declare const STYLESHEET_STORE_ALIAS = "Umb.Store.Stylesheet";
|
|
10
|
+
export declare const STYLESHEET_TREE_STORE_ALIAS = "Umb.Store.StylesheetTree";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const STYLESHEET_ENTITY_TYPE = 'stylesheet';
|
|
2
|
+
export const STYLESHEET_ROOT_ENTITY_TYPE = 'stylesheet-root';
|
|
3
|
+
export const STYLESHEET_FOLDER_ENTITY_TYPE = 'stylesheet-folder';
|
|
4
|
+
export const STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE = 'stylesheet-folder-empty';
|
|
5
|
+
export const STYLESHEET_REPOSITORY_ALIAS = 'Umb.Repository.Stylesheet';
|
|
6
|
+
export const STYLESHEET_TREE_ALIAS = 'Umb.Tree.Stylesheet';
|
|
7
|
+
export const UMB_STYLESHEET_TREE_STORE_CONTEXT_TOKEN_ALIAS = 'Umb.Store.Stylesheet.Tree';
|
|
8
|
+
export const UMB_STYLESHEET_STORE_CONTEXT_TOKEN_ALIAS = 'Umb.Store.Stylesheet';
|
|
9
|
+
export const STYLESHEET_STORE_ALIAS = 'Umb.Store.Stylesheet';
|
|
10
|
+
export const STYLESHEET_TREE_STORE_ALIAS = 'Umb.Store.StylesheetTree';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UmbEntityActionBase } from '../../../../core/entity-action/index.js';
|
|
2
|
+
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
3
|
+
export declare class UmbCreateRTFStylesheetAction<T extends {
|
|
4
|
+
copy(): Promise<void>;
|
|
5
|
+
}> extends UmbEntityActionBase<T> {
|
|
6
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
7
|
+
execute(): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UmbEntityActionBase } from '../../../../core/entity-action/index.js';
|
|
2
|
+
export class UmbCreateRTFStylesheetAction extends UmbEntityActionBase {
|
|
3
|
+
constructor(host, repositoryAlias, unique) {
|
|
4
|
+
super(host, repositoryAlias, unique);
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
history.pushState(null, '', `section/settings/workspace/stylesheet/create/${this.unique ?? 'null'}/view/rich-text-editor`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UmbEntityActionBase } from '../../../../core/entity-action/index.js';
|
|
2
|
+
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
3
|
+
export declare class UmbCreateStylesheetAction<T extends {
|
|
4
|
+
copy(): Promise<void>;
|
|
5
|
+
}> extends UmbEntityActionBase<T> {
|
|
6
|
+
constructor(host: UmbControllerHostElement, repositoryAlias: string, unique: string);
|
|
7
|
+
execute(): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UmbEntityActionBase } from '../../../../core/entity-action/index.js';
|
|
2
|
+
export class UmbCreateStylesheetAction extends UmbEntityActionBase {
|
|
3
|
+
constructor(host, repositoryAlias, unique) {
|
|
4
|
+
super(host, repositoryAlias, unique);
|
|
5
|
+
}
|
|
6
|
+
async execute() {
|
|
7
|
+
history.pushState(null, '', `section/settings/workspace/stylesheet/create/${this.unique ?? 'null'}/view/code`);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { STYLESHEET_ENTITY_TYPE, STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE, STYLESHEET_FOLDER_ENTITY_TYPE, STYLESHEET_REPOSITORY_ALIAS, STYLESHEET_ROOT_ENTITY_TYPE, } from '../config.js';
|
|
2
|
+
import { UmbCreateRTFStylesheetAction } from './create/create-rtf.action.js';
|
|
3
|
+
import { UmbCreateStylesheetAction } from './create/create.action.js';
|
|
4
|
+
import { UmbCreateFolderEntityAction, UmbDeleteEntityAction, UmbDeleteFolderEntityAction, } from '../../../core/entity-action/index.js';
|
|
5
|
+
//TODO: this is temporary until we have a proper way of registering actions for folder types in a specific tree
|
|
6
|
+
//Actions for partial view files
|
|
7
|
+
const stylesheetActions = [
|
|
8
|
+
{
|
|
9
|
+
type: 'entityAction',
|
|
10
|
+
alias: 'Umb.EntityAction.Stylesheet.Delete',
|
|
11
|
+
name: 'Delete Stylesheet Entity Action',
|
|
12
|
+
meta: {
|
|
13
|
+
icon: 'umb:trash',
|
|
14
|
+
label: 'Delete',
|
|
15
|
+
api: UmbDeleteEntityAction,
|
|
16
|
+
repositoryAlias: STYLESHEET_REPOSITORY_ALIAS,
|
|
17
|
+
entityTypes: [STYLESHEET_ENTITY_TYPE],
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//TODO: add create folder action when the generic folder action is implemented
|
|
22
|
+
//Actions for directories
|
|
23
|
+
const stylesheetFolderActions = [
|
|
24
|
+
{
|
|
25
|
+
type: 'entityAction',
|
|
26
|
+
alias: 'Umb.EntityAction.Stylesheet.Folder.Create',
|
|
27
|
+
name: 'Create Stylesheet Entity Under Directory Action',
|
|
28
|
+
meta: {
|
|
29
|
+
icon: 'umb:script',
|
|
30
|
+
label: 'New stylesheet file',
|
|
31
|
+
api: UmbCreateStylesheetAction,
|
|
32
|
+
repositoryAlias: STYLESHEET_REPOSITORY_ALIAS,
|
|
33
|
+
entityTypes: [STYLESHEET_FOLDER_ENTITY_TYPE, STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE, STYLESHEET_ROOT_ENTITY_TYPE],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
type: 'entityAction',
|
|
38
|
+
alias: 'Umb.EntityAction.Stylesheet.Folder.Create.RTF',
|
|
39
|
+
name: 'Create RTF Stylesheet Entity Under Directory Action',
|
|
40
|
+
meta: {
|
|
41
|
+
icon: 'umb:script',
|
|
42
|
+
label: 'New Rich Text Editor style sheet file',
|
|
43
|
+
api: UmbCreateRTFStylesheetAction,
|
|
44
|
+
repositoryAlias: STYLESHEET_REPOSITORY_ALIAS,
|
|
45
|
+
entityTypes: [STYLESHEET_FOLDER_ENTITY_TYPE, STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE, STYLESHEET_ROOT_ENTITY_TYPE],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
type: 'entityAction',
|
|
50
|
+
alias: 'Umb.EntityAction.Stylesheet.Folder.DeleteFolder',
|
|
51
|
+
name: 'Remove empty folder',
|
|
52
|
+
meta: {
|
|
53
|
+
icon: 'umb:trash',
|
|
54
|
+
label: 'Remove folder',
|
|
55
|
+
api: UmbDeleteFolderEntityAction,
|
|
56
|
+
repositoryAlias: STYLESHEET_REPOSITORY_ALIAS,
|
|
57
|
+
entityTypes: [STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE],
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
type: 'entityAction',
|
|
62
|
+
alias: 'Umb.EntityAction.Stylesheet.Folder.CreateFolder',
|
|
63
|
+
name: 'Create empty folder',
|
|
64
|
+
meta: {
|
|
65
|
+
icon: 'umb:add',
|
|
66
|
+
label: 'Create folder',
|
|
67
|
+
api: UmbCreateFolderEntityAction,
|
|
68
|
+
repositoryAlias: STYLESHEET_REPOSITORY_ALIAS,
|
|
69
|
+
entityTypes: [STYLESHEET_FOLDER_EMPTY_ENTITY_TYPE, STYLESHEET_FOLDER_ENTITY_TYPE, STYLESHEET_ROOT_ENTITY_TYPE],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
export const manifests = [...stylesheetActions, ...stylesheetFolderActions];
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
content: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const STYLESHEET_ENTITY_TYPE = "stylesheet";
|
|
1
|
+
import { StylesheetResponseModel } from '../../../external/backend-api/index.js';
|
|
2
|
+
export type StylesheetDetails = StylesheetResponseModel;
|
|
6
3
|
export * from './repository/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: (import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestRepository | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction | import("../../core/index.js").ManifestWorkspaceEditorView)[];
|
|
1
|
+
export declare const manifests: (import("../../core/index.js").ManifestModal | import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestRepository | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction | import("../../core/index.js").ManifestWorkspaceEditorView)[];
|
|
@@ -2,4 +2,11 @@ import { manifests as repositoryManifests } from './repository/manifests.js';
|
|
|
2
2
|
import { manifests as menuItemManifests } from './menu-item/manifests.js';
|
|
3
3
|
import { manifests as treeManifests } from './tree/manifests.js';
|
|
4
4
|
import { manifests as workspaceManifests } from './workspace/manifests.js';
|
|
5
|
-
|
|
5
|
+
import { manifests as entityActionManifests } from './entity-actions/manifests.js';
|
|
6
|
+
export const manifests = [
|
|
7
|
+
...repositoryManifests,
|
|
8
|
+
...menuItemManifests,
|
|
9
|
+
...treeManifests,
|
|
10
|
+
...workspaceManifests,
|
|
11
|
+
...entityActionManifests,
|
|
12
|
+
];
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { ManifestRepository, ManifestTreeStore } from '../../../core/extension-registry/index.js';
|
|
2
|
-
export declare const STYLESHEET_REPOSITORY_ALIAS = "Umb.Repository.Stylesheet";
|
|
3
|
-
export declare const STYLESHEET_STORE_ALIAS = "Umb.Store.Stylesheet";
|
|
4
|
-
export declare const STYLESHEET_TREE_STORE_ALIAS = "Umb.Store.StylesheetTree";
|
|
5
2
|
export declare const manifests: (ManifestRepository | ManifestTreeStore)[];
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
+
import { STYLESHEET_REPOSITORY_ALIAS, STYLESHEET_TREE_STORE_ALIAS } from '../config.js';
|
|
1
2
|
import { UmbStylesheetRepository } from './stylesheet.repository.js';
|
|
2
3
|
import { UmbStylesheetTreeStore } from './stylesheet.tree.store.js';
|
|
3
|
-
export const STYLESHEET_REPOSITORY_ALIAS = 'Umb.Repository.Stylesheet';
|
|
4
4
|
const repository = {
|
|
5
5
|
type: 'repository',
|
|
6
6
|
alias: STYLESHEET_REPOSITORY_ALIAS,
|
|
7
7
|
name: 'Stylesheet Repository',
|
|
8
8
|
class: UmbStylesheetRepository,
|
|
9
9
|
};
|
|
10
|
-
export const STYLESHEET_STORE_ALIAS = 'Umb.Store.Stylesheet';
|
|
11
|
-
export const STYLESHEET_TREE_STORE_ALIAS = 'Umb.Store.StylesheetTree';
|
|
12
10
|
const treeStore = {
|
|
13
11
|
type: 'treeStore',
|
|
14
12
|
alias: STYLESHEET_TREE_STORE_ALIAS,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { CreateFolderRequestModel, FolderModelBaseModel, FolderResponseModel } from '../../../../../external/backend-api/index.js';
|
|
2
|
+
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
3
|
+
import { DataSourceResponse, UmbFolderDataSource } from '../../../../../shared/repository/index.js';
|
|
4
|
+
export type StylesheetGetFolderResponse = {
|
|
5
|
+
path: string;
|
|
6
|
+
parentPath: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
export declare class UmbStylesheetFolderServerDataSource implements UmbFolderDataSource {
|
|
10
|
+
#private;
|
|
11
|
+
constructor(host: UmbControllerHostElement);
|
|
12
|
+
get(unique: string): Promise<DataSourceResponse<StylesheetGetFolderResponse>>;
|
|
13
|
+
insert(requestBody: CreateFolderRequestModel): Promise<DataSourceResponse<string>>;
|
|
14
|
+
delete(path: string): Promise<DataSourceResponse<unknown>>;
|
|
15
|
+
update(unique: string, data: CreateFolderRequestModel): Promise<DataSourceResponse<FolderModelBaseModel>>;
|
|
16
|
+
createScaffold(parentId: string | null): Promise<DataSourceResponse<FolderResponseModel>>;
|
|
17
|
+
}
|
package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.folder.server.data.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { StylesheetResource, } from '../../../../../external/backend-api/index.js';
|
|
2
|
+
import { tryExecuteAndNotify } from '../../../../../shared/resources/index.js';
|
|
3
|
+
export class UmbStylesheetFolderServerDataSource {
|
|
4
|
+
#host;
|
|
5
|
+
constructor(host) {
|
|
6
|
+
this.#host = host;
|
|
7
|
+
}
|
|
8
|
+
get(unique) {
|
|
9
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.getStylesheetFolder({ path: unique }));
|
|
10
|
+
}
|
|
11
|
+
insert(requestBody) {
|
|
12
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.postStylesheetFolder({ requestBody }));
|
|
13
|
+
}
|
|
14
|
+
delete(path) {
|
|
15
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.deleteStylesheetFolder({ path }));
|
|
16
|
+
}
|
|
17
|
+
update(unique, data) {
|
|
18
|
+
throw new Error('Method not implemented.');
|
|
19
|
+
}
|
|
20
|
+
createScaffold(parentId) {
|
|
21
|
+
throw new Error('Method not implemented.');
|
|
22
|
+
}
|
|
23
|
+
}
|
package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.server.data.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { StylesheetDetails } from '../../index.js';
|
|
2
2
|
import { DataSourceResponse, UmbDataSource } from '../../../../../shared/repository/index.js';
|
|
3
3
|
import { UmbControllerHostElement } from '../../../../../libs/controller-api/index.js';
|
|
4
|
+
import { CreateStylesheetRequestModel, ExtractRichTextStylesheetRulesRequestModel, ExtractRichTextStylesheetRulesResponseModel, InterpolateRichTextStylesheetRequestModel, InterpolateRichTextStylesheetResponseModel, RichTextStylesheetRulesResponseModel, UpdateStylesheetRequestModel } from '../../../../../external/backend-api/index.js';
|
|
4
5
|
/**
|
|
5
6
|
* A data source for the Stylesheet that fetches data from the server
|
|
6
7
|
* @export
|
|
7
8
|
* @class UmbStylesheetServerDataSource
|
|
8
9
|
* @implements {UmbStylesheetServerDataSource}
|
|
9
10
|
*/
|
|
10
|
-
export declare class UmbStylesheetServerDataSource implements UmbDataSource<
|
|
11
|
+
export declare class UmbStylesheetServerDataSource implements UmbDataSource<CreateStylesheetRequestModel, string, UpdateStylesheetRequestModel, StylesheetDetails> {
|
|
11
12
|
#private;
|
|
12
13
|
/**
|
|
13
14
|
* Creates an instance of UmbStylesheetServerDataSource.
|
|
@@ -22,11 +23,54 @@ export declare class UmbStylesheetServerDataSource implements UmbDataSource<any,
|
|
|
22
23
|
* @return {*}
|
|
23
24
|
* @memberof UmbStylesheetServerDataSource
|
|
24
25
|
*/
|
|
25
|
-
get(path: string): Promise<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
get(path: string): Promise<DataSourceResponse<import("../../../../../external/backend-api/index.js").TextFileResponseModelBaseModel>>;
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new Stylesheet
|
|
29
|
+
*
|
|
30
|
+
* @param {StylesheetDetails} data
|
|
31
|
+
* @return {*} {Promise<DataSourceResponse<any>>}
|
|
32
|
+
* @memberof UmbStylesheetServerDataSource
|
|
33
|
+
*/
|
|
34
|
+
insert(data: StylesheetDetails): Promise<DataSourceResponse<any>>;
|
|
35
|
+
/**
|
|
36
|
+
* Updates an existing Stylesheet
|
|
37
|
+
*
|
|
38
|
+
* @param {string} path
|
|
39
|
+
* @param {StylesheetDetails} data
|
|
40
|
+
* @return {*} {Promise<DataSourceResponse<StylesheetDetails>>}
|
|
41
|
+
* @memberof UmbStylesheetServerDataSource
|
|
42
|
+
*/
|
|
30
43
|
update(path: string, data: StylesheetDetails): Promise<DataSourceResponse<StylesheetDetails>>;
|
|
44
|
+
/**
|
|
45
|
+
* Deletes a Stylesheet.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} path
|
|
48
|
+
* @return {*} {Promise<DataSourceResponse>}
|
|
49
|
+
* @memberof UmbStylesheetServerDataSource
|
|
50
|
+
*/
|
|
31
51
|
delete(path: string): Promise<DataSourceResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Get's the rich text rules for a stylesheet
|
|
54
|
+
*
|
|
55
|
+
* @param {string} path
|
|
56
|
+
* @return {*} {(Promise<DataSourceResponse<RichTextStylesheetRulesResponseModel | ExtractRichTextStylesheetRulesResponseModel>>)}
|
|
57
|
+
* @memberof UmbStylesheetServerDataSource
|
|
58
|
+
*/
|
|
59
|
+
getStylesheetRichTextRules(path: string): Promise<DataSourceResponse<RichTextStylesheetRulesResponseModel | ExtractRichTextStylesheetRulesResponseModel>>;
|
|
60
|
+
/**
|
|
61
|
+
* Extracts the rich text rules from a stylesheet string. In simple words: takes a stylesheet string and returns a array of rules.
|
|
62
|
+
*
|
|
63
|
+
* @param {ExtractRichTextStylesheetRulesRequestModel} data
|
|
64
|
+
* @return {*} {Promise<DataSourceResponse<ExtractRichTextStylesheetRulesResponseModel>>}
|
|
65
|
+
* @memberof UmbStylesheetServerDataSource
|
|
66
|
+
*/
|
|
67
|
+
postStylesheetRichTextExtractRules(data: ExtractRichTextStylesheetRulesRequestModel): Promise<DataSourceResponse<ExtractRichTextStylesheetRulesResponseModel>>;
|
|
68
|
+
/**
|
|
69
|
+
* Interpolates the rich text rules from a stylesheet string. In simple words: takes a array of rules and existing content. Returns new content with the rules applied.
|
|
70
|
+
*
|
|
71
|
+
* @param {InterpolateRichTextStylesheetRequestModel} data
|
|
72
|
+
* @return {*} {Promise<DataSourceResponse<InterpolateRichTextStylesheetResponseModel>>}
|
|
73
|
+
* @memberof UmbStylesheetServerDataSource
|
|
74
|
+
*/
|
|
75
|
+
postStylesheetRichTextInterpolateRules(data: InterpolateRichTextStylesheetRequestModel): Promise<DataSourceResponse<InterpolateRichTextStylesheetResponseModel>>;
|
|
32
76
|
}
|
package/dist-cms/packages/templating/stylesheets/repository/sources/stylesheet.server.data.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { StylesheetResource, } from '../../../../../external/backend-api/index.js';
|
|
2
|
+
import { tryExecuteAndNotify } from '../../../../../shared/resources/index.js';
|
|
1
3
|
/**
|
|
2
4
|
* A data source for the Stylesheet that fetches data from the server
|
|
3
5
|
* @export
|
|
@@ -26,16 +28,67 @@ export class UmbStylesheetServerDataSource {
|
|
|
26
28
|
async get(path) {
|
|
27
29
|
if (!path)
|
|
28
30
|
throw new Error('Path is missing');
|
|
29
|
-
|
|
30
|
-
return { data: undefined, error: undefined };
|
|
31
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.getStylesheet({ path }));
|
|
31
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new Stylesheet
|
|
35
|
+
*
|
|
36
|
+
* @param {StylesheetDetails} data
|
|
37
|
+
* @return {*} {Promise<DataSourceResponse<any>>}
|
|
38
|
+
* @memberof UmbStylesheetServerDataSource
|
|
39
|
+
*/
|
|
32
40
|
insert(data) {
|
|
33
|
-
|
|
41
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.postStylesheet({ requestBody: data }));
|
|
34
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* Updates an existing Stylesheet
|
|
45
|
+
*
|
|
46
|
+
* @param {string} path
|
|
47
|
+
* @param {StylesheetDetails} data
|
|
48
|
+
* @return {*} {Promise<DataSourceResponse<StylesheetDetails>>}
|
|
49
|
+
* @memberof UmbStylesheetServerDataSource
|
|
50
|
+
*/
|
|
35
51
|
update(path, data) {
|
|
36
|
-
|
|
52
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.putStylesheet({ requestBody: data }));
|
|
37
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Deletes a Stylesheet.
|
|
56
|
+
*
|
|
57
|
+
* @param {string} path
|
|
58
|
+
* @return {*} {Promise<DataSourceResponse>}
|
|
59
|
+
* @memberof UmbStylesheetServerDataSource
|
|
60
|
+
*/
|
|
38
61
|
delete(path) {
|
|
39
|
-
|
|
62
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.deleteStylesheet({ path }));
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get's the rich text rules for a stylesheet
|
|
66
|
+
*
|
|
67
|
+
* @param {string} path
|
|
68
|
+
* @return {*} {(Promise<DataSourceResponse<RichTextStylesheetRulesResponseModel | ExtractRichTextStylesheetRulesResponseModel>>)}
|
|
69
|
+
* @memberof UmbStylesheetServerDataSource
|
|
70
|
+
*/
|
|
71
|
+
getStylesheetRichTextRules(path) {
|
|
72
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.getStylesheetRichTextRules({ path }));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Extracts the rich text rules from a stylesheet string. In simple words: takes a stylesheet string and returns a array of rules.
|
|
76
|
+
*
|
|
77
|
+
* @param {ExtractRichTextStylesheetRulesRequestModel} data
|
|
78
|
+
* @return {*} {Promise<DataSourceResponse<ExtractRichTextStylesheetRulesResponseModel>>}
|
|
79
|
+
* @memberof UmbStylesheetServerDataSource
|
|
80
|
+
*/
|
|
81
|
+
postStylesheetRichTextExtractRules(data) {
|
|
82
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.postStylesheetRichTextExtractRules({ requestBody: data }));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Interpolates the rich text rules from a stylesheet string. In simple words: takes a array of rules and existing content. Returns new content with the rules applied.
|
|
86
|
+
*
|
|
87
|
+
* @param {InterpolateRichTextStylesheetRequestModel} data
|
|
88
|
+
* @return {*} {Promise<DataSourceResponse<InterpolateRichTextStylesheetResponseModel>>}
|
|
89
|
+
* @memberof UmbStylesheetServerDataSource
|
|
90
|
+
*/
|
|
91
|
+
postStylesheetRichTextInterpolateRules(data) {
|
|
92
|
+
return tryExecuteAndNotify(this.#host, StylesheetResource.postStylesheetRichTextInterpolateRules({ requestBody: data }));
|
|
40
93
|
}
|
|
41
94
|
}
|
|
@@ -1,10 +1,55 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { StylesheetDetails } from '../index.js';
|
|
3
|
+
import { StylesheetGetFolderResponse } from './sources/stylesheet.folder.server.data.js';
|
|
1
4
|
import { UmbControllerHostElement } from '../../../../libs/controller-api/index.js';
|
|
2
|
-
import { UmbTreeRepository } from '../../../../shared/repository/index.js';
|
|
3
|
-
import { FileSystemTreeItemPresentationModel } from '../../../../external/backend-api/index.js';
|
|
5
|
+
import { DataSourceResponse, UmbDataSourceErrorResponse, UmbDetailRepository, UmbFolderRepository, UmbTreeRepository } from '../../../../shared/repository/index.js';
|
|
6
|
+
import { CreateFolderRequestModel, CreateStylesheetRequestModel, CreateTextFileViewModelBaseModel, ExtractRichTextStylesheetRulesRequestModel, ExtractRichTextStylesheetRulesResponseModel, FileSystemTreeItemPresentationModel, FolderModelBaseModel, FolderResponseModel, InterpolateRichTextStylesheetRequestModel, InterpolateRichTextStylesheetResponseModel, ProblemDetails, RichTextStylesheetRulesResponseModel, TextFileResponseModelBaseModel, UpdateStylesheetRequestModel, UpdateTextFileViewModelBaseModel } from '../../../../external/backend-api/index.js';
|
|
4
7
|
import type { UmbTreeRootFileSystemModel } from '../../../core/tree/index.js';
|
|
5
|
-
export declare class UmbStylesheetRepository implements UmbTreeRepository<FileSystemTreeItemPresentationModel, UmbTreeRootFileSystemModel
|
|
8
|
+
export declare class UmbStylesheetRepository implements UmbTreeRepository<FileSystemTreeItemPresentationModel, UmbTreeRootFileSystemModel>, UmbDetailRepository<CreateStylesheetRequestModel, string, UpdateStylesheetRequestModel, StylesheetDetails>, UmbFolderRepository {
|
|
6
9
|
#private;
|
|
7
10
|
constructor(host: UmbControllerHostElement);
|
|
11
|
+
createFolderScaffold(parentId: string | null): Promise<{
|
|
12
|
+
data?: FolderResponseModel | undefined;
|
|
13
|
+
error?: ProblemDetails | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
createFolder(folderRequest: CreateFolderRequestModel): Promise<{
|
|
16
|
+
data?: string | undefined;
|
|
17
|
+
error?: ProblemDetails | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
requestFolder(unique: string): Promise<{
|
|
20
|
+
data?: StylesheetGetFolderResponse | undefined;
|
|
21
|
+
error?: ProblemDetails | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
updateFolder(unique: string, folder: FolderModelBaseModel): Promise<{
|
|
24
|
+
data?: FolderModelBaseModel | undefined;
|
|
25
|
+
error?: ProblemDetails | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
deleteFolder(path: string): Promise<{
|
|
28
|
+
error?: ProblemDetails | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
createScaffold(parentId: string | null, preset?: Partial<CreateTextFileViewModelBaseModel> | undefined): Promise<DataSourceResponse<CreateTextFileViewModelBaseModel>>;
|
|
31
|
+
requestById(id: string): Promise<DataSourceResponse<TextFileResponseModelBaseModel | undefined>>;
|
|
32
|
+
byId(id: string): Promise<Observable<TextFileResponseModelBaseModel | undefined>>;
|
|
33
|
+
create(data: CreateTextFileViewModelBaseModel): Promise<DataSourceResponse<string>>;
|
|
34
|
+
save(id: string, data: UpdateTextFileViewModelBaseModel): Promise<UmbDataSourceErrorResponse>;
|
|
35
|
+
delete(id: string): Promise<UmbDataSourceErrorResponse>;
|
|
36
|
+
getStylesheetRules(path: string): Promise<DataSourceResponse<RichTextStylesheetRulesResponseModel | ExtractRichTextStylesheetRulesResponseModel>>;
|
|
37
|
+
/**
|
|
38
|
+
* Existing content + array of rules => new content string
|
|
39
|
+
*
|
|
40
|
+
* @param {InterpolateRichTextStylesheetRequestModel} data
|
|
41
|
+
* @return {*} {Promise<DataSourceResponse<InterpolateRichTextStylesheetResponseModel>>}
|
|
42
|
+
* @memberof UmbStylesheetRepository
|
|
43
|
+
*/
|
|
44
|
+
interpolateStylesheetRules(data: InterpolateRichTextStylesheetRequestModel): Promise<DataSourceResponse<InterpolateRichTextStylesheetResponseModel>>;
|
|
45
|
+
/**
|
|
46
|
+
* content string => array of rules
|
|
47
|
+
*
|
|
48
|
+
* @param {ExtractRichTextStylesheetRulesRequestModel} data
|
|
49
|
+
* @return {*} {Promise<DataSourceResponse<ExtractRichTextStylesheetRulesResponseModel>>}
|
|
50
|
+
* @memberof UmbStylesheetRepository
|
|
51
|
+
*/
|
|
52
|
+
extractStylesheetRules(data: ExtractRichTextStylesheetRulesRequestModel): Promise<DataSourceResponse<ExtractRichTextStylesheetRulesResponseModel>>;
|
|
8
53
|
requestTreeRoot(): Promise<{
|
|
9
54
|
data: {
|
|
10
55
|
path: null;
|
|
@@ -21,17 +66,13 @@ export declare class UmbStylesheetRepository implements UmbTreeRepository<FileSy
|
|
|
21
66
|
requestTreeItemsOf(path: string | null): Promise<{
|
|
22
67
|
data: import("../../../../external/backend-api/index.js").PagedFileSystemTreeItemPresentationModel | undefined;
|
|
23
68
|
error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
|
|
24
|
-
asObservable: () =>
|
|
69
|
+
asObservable: () => Observable<FileSystemTreeItemPresentationModel[]>;
|
|
25
70
|
}>;
|
|
26
|
-
|
|
71
|
+
requestItems(paths: Array<string>): Promise<{
|
|
27
72
|
data: import("../../../../external/backend-api/index.js").FileItemResponseModelBaseModel[] | undefined;
|
|
28
73
|
error: import("../../../../external/backend-api/index.js").ApiError | import("../../../../external/backend-api/index.js").CancelError | undefined;
|
|
29
74
|
}>;
|
|
30
|
-
rootTreeItems(): Promise<
|
|
31
|
-
treeItemsOf(parentPath: string | null): Promise<
|
|
32
|
-
itemsLegacy(paths: Array<string>): Promise<
|
|
33
|
-
requestByPath(path: string): Promise<{
|
|
34
|
-
data: undefined;
|
|
35
|
-
error: undefined;
|
|
36
|
-
}>;
|
|
75
|
+
rootTreeItems(): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
|
|
76
|
+
treeItemsOf(parentPath: string | null): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
|
|
77
|
+
itemsLegacy(paths: Array<string>): Promise<Observable<FileSystemTreeItemPresentationModel[]>>;
|
|
37
78
|
}
|