@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/core/components/property-editor-config/property-editor-config.element.js
CHANGED
|
@@ -6,23 +6,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, customElement, property, state, ifDefined } from '../../../../external/lit/index.js';
|
|
8
8
|
import { UmbTextStyles } from "../../../../shared/style/index.js";
|
|
9
|
-
import { umbExtensionsRegistry, } from '../../extension-registry/index.js';
|
|
10
9
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
11
|
-
import {
|
|
10
|
+
import { UMB_DATA_TYPE_VARIANT_CONTEXT } from '../../../settings/data-types/index.js';
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* @element umb-property-editor-config
|
|
13
|
+
* @description - Element for displaying the configuration for a Property Editor based on a Property Editor UI Alias and a Property Editor Model alias.
|
|
14
|
+
* This element requires a UMB_DATA_TYPE_WORKSPACE_CONTEXT to be present.
|
|
15
15
|
*/
|
|
16
16
|
export let UmbPropertyEditorConfigElement = class UmbPropertyEditorConfigElement extends UmbLitElement {
|
|
17
|
+
// TODO: Make this element generic, so its not bound to DATA-TYPEs. This will require moving some functionality of Data-Type-Context to this. and this might need to self provide a variant Context for its inner property editor UIs.
|
|
18
|
+
#variantContext;
|
|
17
19
|
constructor() {
|
|
18
|
-
super(
|
|
19
|
-
/**
|
|
20
|
-
* Property Editor UI Alias. The element will render configuration for a Property Editor UI with this alias.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @attr
|
|
23
|
-
* @default ''
|
|
24
|
-
*/
|
|
25
|
-
this._propertyEditorUiAlias = '';
|
|
20
|
+
super();
|
|
26
21
|
/**
|
|
27
22
|
* Data. The element will render configuration editors with values from this data.
|
|
28
23
|
* If a value is not found in this data, the element will use the default value from the configuration.
|
|
@@ -32,58 +27,13 @@ export let UmbPropertyEditorConfigElement = class UmbPropertyEditorConfigElement
|
|
|
32
27
|
*/
|
|
33
28
|
this.data = [];
|
|
34
29
|
this._properties = [];
|
|
35
|
-
this.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
get propertyEditorUiAlias() {
|
|
41
|
-
return this._propertyEditorUiAlias;
|
|
42
|
-
}
|
|
43
|
-
set propertyEditorUiAlias(value) {
|
|
44
|
-
const oldVal = this._propertyEditorUiAlias;
|
|
45
|
-
this._propertyEditorUiAlias = value;
|
|
46
|
-
this.requestUpdate('propertyEditorUiAlias', oldVal);
|
|
47
|
-
this._observePropertyEditorUIConfig();
|
|
48
|
-
}
|
|
49
|
-
_observePropertyEditorUIConfig() {
|
|
50
|
-
if (!this._propertyEditorUiAlias)
|
|
51
|
-
return;
|
|
52
|
-
this.observe(umbExtensionsRegistry.getByTypeAndAlias('propertyEditorUi', this.propertyEditorUiAlias), (manifest) => {
|
|
53
|
-
this._observePropertyEditorSchemaConfig(manifest?.meta.propertyEditorSchemaAlias || UMB_PROPERTY_EDITOR_SCHEMA_ALIAS_DEFAULT);
|
|
54
|
-
this._propertyEditorUISettingsProperties = manifest?.meta.settings?.properties || [];
|
|
55
|
-
this._propertyEditorUISettingsDefaultData = manifest?.meta.settings?.defaultData || [];
|
|
56
|
-
this._mergeConfigProperties();
|
|
57
|
-
this._mergeConfigDefaultData();
|
|
30
|
+
this.consumeContext(UMB_DATA_TYPE_VARIANT_CONTEXT, (instance) => {
|
|
31
|
+
this.#variantContext = instance;
|
|
32
|
+
this.observe(this.#variantContext.properties, (properties) => {
|
|
33
|
+
this._properties = properties;
|
|
34
|
+
}, 'observeProperties');
|
|
58
35
|
});
|
|
59
36
|
}
|
|
60
|
-
_observePropertyEditorSchemaConfig(propertyEditorSchemaAlias) {
|
|
61
|
-
this.observe(umbExtensionsRegistry.getByTypeAndAlias('propertyEditorSchema', propertyEditorSchemaAlias), (manifest) => {
|
|
62
|
-
this._propertyEditorSchemaConfigProperties = manifest?.meta.settings?.properties || [];
|
|
63
|
-
this._propertyEditorSchemaConfigDefaultData = manifest?.meta.settings?.defaultData || [];
|
|
64
|
-
this._mergeConfigProperties();
|
|
65
|
-
this._mergeConfigDefaultData();
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
_mergeConfigProperties() {
|
|
69
|
-
this._properties = [...this._propertyEditorSchemaConfigProperties, ...this._propertyEditorUISettingsProperties];
|
|
70
|
-
}
|
|
71
|
-
_mergeConfigDefaultData() {
|
|
72
|
-
this._configDefaultData = [
|
|
73
|
-
...this._propertyEditorSchemaConfigDefaultData,
|
|
74
|
-
...this._propertyEditorUISettingsDefaultData,
|
|
75
|
-
];
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Get the stored value for a property. It will render the default value from the configuration if no value is stored in the database.
|
|
79
|
-
*/
|
|
80
|
-
_getValue(property) {
|
|
81
|
-
const value = this.data.find((data) => data.alias === property.alias)?.value;
|
|
82
|
-
if (value)
|
|
83
|
-
return value;
|
|
84
|
-
const defaultValue = this._configDefaultData?.find((data) => data.alias === property.alias)?.value;
|
|
85
|
-
return defaultValue ?? null;
|
|
86
|
-
}
|
|
87
37
|
render() {
|
|
88
38
|
return html `
|
|
89
39
|
${this._properties.length > 0
|
|
@@ -94,7 +44,6 @@ export let UmbPropertyEditorConfigElement = class UmbPropertyEditorConfigElement
|
|
|
94
44
|
description="${ifDefined(property.description)}"
|
|
95
45
|
alias="${property.alias}"
|
|
96
46
|
property-editor-ui-alias="${property.propertyEditorUiAlias}"
|
|
97
|
-
.value=${this._getValue(property)}
|
|
98
47
|
.config=${property.config}></umb-workspace-property>
|
|
99
48
|
`)}
|
|
100
49
|
`
|
|
@@ -103,9 +52,6 @@ export let UmbPropertyEditorConfigElement = class UmbPropertyEditorConfigElement
|
|
|
103
52
|
}
|
|
104
53
|
static { this.styles = [UmbTextStyles]; }
|
|
105
54
|
};
|
|
106
|
-
__decorate([
|
|
107
|
-
property({ type: String, attribute: 'property-editor-ui-alias' })
|
|
108
|
-
], UmbPropertyEditorConfigElement.prototype, "propertyEditorUiAlias", null);
|
|
109
55
|
__decorate([
|
|
110
56
|
property({ type: Array })
|
|
111
57
|
], UmbPropertyEditorConfigElement.prototype, "data", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { UmbVariantId } from '../../variant/index.js';
|
|
2
1
|
import type { PropertyTypeModelBaseModel } from '../../../../external/backend-api/index.js';
|
|
3
2
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
4
3
|
export declare class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
|
|
@@ -9,21 +8,6 @@ export declare class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
|
|
|
9
8
|
private _dataTypeData?;
|
|
10
9
|
private _dataTypeRepository;
|
|
11
10
|
private _dataTypeObserver?;
|
|
12
|
-
private _value?;
|
|
13
|
-
/**
|
|
14
|
-
* propertyVariantId. A VariantID to identify which the variant of this properties value.
|
|
15
|
-
* @public
|
|
16
|
-
* @type {UmbVariantId}
|
|
17
|
-
* @attr
|
|
18
|
-
* @default undefined
|
|
19
|
-
*/
|
|
20
|
-
get propertyVariantId(): UmbVariantId | undefined;
|
|
21
|
-
set propertyVariantId(value: UmbVariantId | undefined);
|
|
22
|
-
private _propertyVariantId?;
|
|
23
|
-
private _workspaceContext?;
|
|
24
|
-
constructor();
|
|
25
|
-
private _observePropertyValue?;
|
|
26
|
-
private _observeProperty;
|
|
27
11
|
private _observeDataType;
|
|
28
12
|
render(): import("lit-html").TemplateResult<1>;
|
|
29
13
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
@@ -7,10 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { UmbTextStyles } from "../../../../shared/style/index.js";
|
|
8
8
|
import { css, html, ifDefined, customElement, property, state } from '../../../../external/lit/index.js';
|
|
9
9
|
import { UmbDataTypeRepository } from '../../../settings/data-types/index.js';
|
|
10
|
-
import { UMB_DOCUMENT_WORKSPACE_CONTEXT } from '../../../documents/documents/index.js';
|
|
11
10
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
12
11
|
import { umbExtensionsRegistry } from '../../extension-registry/index.js';
|
|
13
12
|
export let UmbPropertyTypeBasedPropertyElement = class UmbPropertyTypeBasedPropertyElement extends UmbLitElement {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this._dataTypeRepository = new UmbDataTypeRepository(this);
|
|
16
|
+
}
|
|
14
17
|
get property() {
|
|
15
18
|
return this._property;
|
|
16
19
|
}
|
|
@@ -19,43 +22,8 @@ export let UmbPropertyTypeBasedPropertyElement = class UmbPropertyTypeBasedPrope
|
|
|
19
22
|
this._property = value;
|
|
20
23
|
if (this._property?.dataTypeId !== oldProperty?.dataTypeId) {
|
|
21
24
|
this._observeDataType(this._property?.dataTypeId);
|
|
22
|
-
this._observeProperty();
|
|
23
25
|
}
|
|
24
26
|
}
|
|
25
|
-
/**
|
|
26
|
-
* propertyVariantId. A VariantID to identify which the variant of this properties value.
|
|
27
|
-
* @public
|
|
28
|
-
* @type {UmbVariantId}
|
|
29
|
-
* @attr
|
|
30
|
-
* @default undefined
|
|
31
|
-
*/
|
|
32
|
-
get propertyVariantId() {
|
|
33
|
-
return this._propertyVariantId;
|
|
34
|
-
}
|
|
35
|
-
set propertyVariantId(value) {
|
|
36
|
-
const oldValue = this._propertyVariantId;
|
|
37
|
-
if (value && oldValue?.equal(value))
|
|
38
|
-
return;
|
|
39
|
-
this._propertyVariantId = value;
|
|
40
|
-
this._observeProperty();
|
|
41
|
-
this.requestUpdate('propertyVariantId', oldValue);
|
|
42
|
-
}
|
|
43
|
-
constructor() {
|
|
44
|
-
super();
|
|
45
|
-
this._dataTypeRepository = new UmbDataTypeRepository(this);
|
|
46
|
-
this.consumeContext(UMB_DOCUMENT_WORKSPACE_CONTEXT, (workspaceContext) => {
|
|
47
|
-
this._workspaceContext = workspaceContext;
|
|
48
|
-
this._observeProperty();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
_observeProperty() {
|
|
52
|
-
if (!this._workspaceContext || !this.property || !this._property?.alias)
|
|
53
|
-
return;
|
|
54
|
-
this._observePropertyValue?.destroy();
|
|
55
|
-
this._observePropertyValue = this.observe(this._workspaceContext.propertyValueByAlias(this._property.alias, this._propertyVariantId), (value) => {
|
|
56
|
-
this._value = value;
|
|
57
|
-
}, '_observePropertyValue');
|
|
58
|
-
}
|
|
59
27
|
async _observeDataType(dataTypeId) {
|
|
60
28
|
this._dataTypeObserver?.destroy();
|
|
61
29
|
if (dataTypeId) {
|
|
@@ -83,8 +51,6 @@ export let UmbPropertyTypeBasedPropertyElement = class UmbPropertyTypeBasedPrope
|
|
|
83
51
|
label=${ifDefined(this._property?.name)}
|
|
84
52
|
description=${ifDefined(this._property?.description || undefined)}
|
|
85
53
|
property-editor-ui-alias=${ifDefined(this._propertyEditorUiAlias)}
|
|
86
|
-
.value=${this._value}
|
|
87
|
-
.propertyVariantId=${this.propertyVariantId}
|
|
88
54
|
.config=${this._dataTypeData}></umb-workspace-property>`;
|
|
89
55
|
}
|
|
90
56
|
static { this.styles = [
|
|
@@ -105,12 +71,6 @@ __decorate([
|
|
|
105
71
|
__decorate([
|
|
106
72
|
state()
|
|
107
73
|
], UmbPropertyTypeBasedPropertyElement.prototype, "_dataTypeData", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
state()
|
|
110
|
-
], UmbPropertyTypeBasedPropertyElement.prototype, "_value", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
property({ type: Object, attribute: false })
|
|
113
|
-
], UmbPropertyTypeBasedPropertyElement.prototype, "propertyVariantId", null);
|
|
114
74
|
UmbPropertyTypeBasedPropertyElement = __decorate([
|
|
115
75
|
customElement('umb-property-type-based-property')
|
|
116
76
|
], UmbPropertyTypeBasedPropertyElement);
|
|
@@ -2,11 +2,10 @@ import { ActiveVariant } from '../../workspace/index.js';
|
|
|
2
2
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
3
3
|
import { DocumentVariantResponseModel } from '../../../../external/backend-api/index.js';
|
|
4
4
|
export declare class UmbVariantSelectorElement extends UmbLitElement {
|
|
5
|
-
|
|
5
|
+
#private;
|
|
6
6
|
_variants: Array<DocumentVariantResponseModel>;
|
|
7
7
|
_activeVariants: Array<ActiveVariant>;
|
|
8
8
|
get _activeVariantsCultures(): string[];
|
|
9
|
-
private _variantContext?;
|
|
10
9
|
private _name?;
|
|
11
10
|
private _culture?;
|
|
12
11
|
private _segment?;
|
|
@@ -28,7 +27,7 @@ export declare class UmbVariantSelectorElement extends UmbLitElement {
|
|
|
28
27
|
private _isVariantActive;
|
|
29
28
|
private _isNotPublishedMode;
|
|
30
29
|
render(): import("lit-html").TemplateResult<1>;
|
|
31
|
-
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
30
|
+
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
32
31
|
}
|
|
33
32
|
export default UmbVariantSelectorElement;
|
|
34
33
|
declare global {
|
|
@@ -4,15 +4,18 @@ 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 { UmbVariantId } from '../../variant/variant-id.class.js';
|
|
7
8
|
import { UUIInputEvent } from '../../../../external/uui/index.js';
|
|
8
9
|
import { css, html, nothing, customElement, property, state, ifDefined } from '../../../../external/lit/index.js';
|
|
9
|
-
import {
|
|
10
|
+
import { UMB_WORKSPACE_SPLIT_VIEW_CONTEXT, UMB_VARIANT_CONTEXT, isNameablePropertySetContext, } from '../../workspace/index.js';
|
|
10
11
|
import { UmbLitElement } from '../../../../shared/lit-element/index.js';
|
|
11
12
|
import { ContentStateModel } from '../../../../external/backend-api/index.js';
|
|
12
13
|
export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends UmbLitElement {
|
|
13
14
|
get _activeVariantsCultures() {
|
|
14
15
|
return this._activeVariants.map((el) => el.culture ?? '') ?? [];
|
|
15
16
|
}
|
|
17
|
+
#splitViewContext;
|
|
18
|
+
#variantContext;
|
|
16
19
|
constructor() {
|
|
17
20
|
super();
|
|
18
21
|
this._variants = [];
|
|
@@ -21,17 +24,20 @@ export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends U
|
|
|
21
24
|
// TODO: make adapt to backoffice locale.
|
|
22
25
|
this._cultureNames = new Intl.DisplayNames('en', { type: 'language' });
|
|
23
26
|
this._variantSelectorIsOpen = false;
|
|
24
|
-
this.consumeContext(
|
|
25
|
-
this
|
|
27
|
+
this.consumeContext(UMB_WORKSPACE_SPLIT_VIEW_CONTEXT, (instance) => {
|
|
28
|
+
this.#splitViewContext = instance;
|
|
26
29
|
this._observeVariants();
|
|
27
30
|
this._observeActiveVariants();
|
|
31
|
+
});
|
|
32
|
+
this.consumeContext(UMB_VARIANT_CONTEXT, (instance) => {
|
|
33
|
+
this.#variantContext = instance;
|
|
28
34
|
this._observeVariantContext();
|
|
29
35
|
});
|
|
30
36
|
}
|
|
31
37
|
async _observeVariants() {
|
|
32
|
-
if (!this
|
|
38
|
+
if (!this.#splitViewContext)
|
|
33
39
|
return;
|
|
34
|
-
const workspaceContext = this.
|
|
40
|
+
const workspaceContext = this.#splitViewContext.getWorkspaceContext();
|
|
35
41
|
if (workspaceContext) {
|
|
36
42
|
this.observe(workspaceContext.variants, (variants) => {
|
|
37
43
|
if (variants) {
|
|
@@ -41,9 +47,9 @@ export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends U
|
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
async _observeActiveVariants() {
|
|
44
|
-
if (!this
|
|
50
|
+
if (!this.#splitViewContext)
|
|
45
51
|
return;
|
|
46
|
-
const workspaceContext = this.
|
|
52
|
+
const workspaceContext = this.#splitViewContext.getWorkspaceContext();
|
|
47
53
|
if (workspaceContext) {
|
|
48
54
|
this.observe(workspaceContext.splitView.activeVariantsInfo, (activeVariants) => {
|
|
49
55
|
if (activeVariants) {
|
|
@@ -53,19 +59,15 @@ export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends U
|
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
async _observeVariantContext() {
|
|
56
|
-
if (!this
|
|
62
|
+
if (!this.#variantContext)
|
|
57
63
|
return;
|
|
58
|
-
this.
|
|
64
|
+
const variantId = this.#variantContext.getVariantId();
|
|
65
|
+
this._culture = variantId.culture;
|
|
66
|
+
this._segment = variantId.segment;
|
|
67
|
+
this.updateVariantDisplayName();
|
|
68
|
+
this.observe(this.#variantContext.name, (name) => {
|
|
59
69
|
this._name = name;
|
|
60
70
|
}, '_name');
|
|
61
|
-
this.observe(this._variantContext.culture, (culture) => {
|
|
62
|
-
this._culture = culture;
|
|
63
|
-
this.updateVariantDisplayName();
|
|
64
|
-
}, '_culture');
|
|
65
|
-
this.observe(this._variantContext.segment, (segment) => {
|
|
66
|
-
this._segment = segment;
|
|
67
|
-
this.updateVariantDisplayName();
|
|
68
|
-
}, '_segment');
|
|
69
71
|
}
|
|
70
72
|
updateVariantDisplayName() {
|
|
71
73
|
if (!this._culture && !this._segment)
|
|
@@ -80,9 +82,8 @@ export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends U
|
|
|
80
82
|
_handleInput(event) {
|
|
81
83
|
if (event instanceof UUIInputEvent) {
|
|
82
84
|
const target = event.composedPath()[0];
|
|
83
|
-
if (typeof target?.value === 'string') {
|
|
84
|
-
|
|
85
|
-
this._variantContext?.setName(target.value);
|
|
85
|
+
if (typeof target?.value === 'string' && this.#variantContext && isNameablePropertySetContext(this.#variantContext)) {
|
|
86
|
+
this.#variantContext.setName(target.value);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -93,15 +94,15 @@ export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends U
|
|
|
93
94
|
this._variantSelectorIsOpen = false;
|
|
94
95
|
}
|
|
95
96
|
_switchVariant(variant) {
|
|
96
|
-
this
|
|
97
|
+
this.#splitViewContext?.switchVariant(UmbVariantId.Create(variant));
|
|
97
98
|
this._close();
|
|
98
99
|
}
|
|
99
100
|
_openSplitView(variant) {
|
|
100
|
-
this
|
|
101
|
+
this.#splitViewContext?.openSplitView(UmbVariantId.Create(variant));
|
|
101
102
|
this._close();
|
|
102
103
|
}
|
|
103
104
|
_closeSplitView() {
|
|
104
|
-
this
|
|
105
|
+
this.#splitViewContext?.closeSplitView();
|
|
105
106
|
}
|
|
106
107
|
_isVariantActive(culture) {
|
|
107
108
|
return this._activeVariantsCultures.includes(culture);
|
|
@@ -296,9 +297,6 @@ export let UmbVariantSelectorElement = class UmbVariantSelectorElement extends U
|
|
|
296
297
|
`,
|
|
297
298
|
]; }
|
|
298
299
|
};
|
|
299
|
-
__decorate([
|
|
300
|
-
property()
|
|
301
|
-
], UmbVariantSelectorElement.prototype, "alias", void 0);
|
|
302
300
|
__decorate([
|
|
303
301
|
state()
|
|
304
302
|
], UmbVariantSelectorElement.prototype, "_variants", void 0);
|
|
@@ -306,7 +304,7 @@ __decorate([
|
|
|
306
304
|
state()
|
|
307
305
|
], UmbVariantSelectorElement.prototype, "_activeVariants", void 0);
|
|
308
306
|
__decorate([
|
|
309
|
-
property()
|
|
307
|
+
property({ attribute: false })
|
|
310
308
|
], UmbVariantSelectorElement.prototype, "_activeVariantsCultures", null);
|
|
311
309
|
__decorate([
|
|
312
310
|
state()
|
|
@@ -42,6 +42,10 @@ export declare class UmbContentTypePropertyStructureManager<R extends UmbDetailR
|
|
|
42
42
|
insertProperty(documentTypeId: string | null, property: PropertyTypeModelBaseModel): Promise<void>;
|
|
43
43
|
removeProperty(documentTypeId: string | null, propertyId: string): Promise<void>;
|
|
44
44
|
updateProperty(documentTypeId: string | null, propertyId: string, partialUpdate: Partial<PropertyTypeModelBaseModel>): Promise<void>;
|
|
45
|
+
propertyStructureById(propertyId: string): Promise<import("rxjs").Observable<PropertyTypeModelBaseModel | undefined>>;
|
|
46
|
+
propertyStructureByAlias(propertyAlias: string): Promise<import("rxjs").Observable<PropertyTypeModelBaseModel | undefined>>;
|
|
47
|
+
getPropertyStructureById(propertyId: string): Promise<PropertyTypeModelBaseModel | undefined>;
|
|
48
|
+
getPropertyStructureByAlias(propertyAlias: string): Promise<PropertyTypeModelBaseModel | undefined>;
|
|
45
49
|
ownerDocumentTypeObservablePart<PartResult>(mappingFunction: MappingFunction<T, PartResult>): import("rxjs").Observable<PartResult | undefined>;
|
|
46
50
|
hasPropertyStructuresOf(containerId: string | null): import("rxjs").Observable<boolean>;
|
|
47
51
|
rootPropertyStructures(): import("rxjs").Observable<PropertyTypeModelBaseModel[]>;
|
|
@@ -216,6 +216,51 @@ export class UmbContentTypePropertyStructureManager {
|
|
|
216
216
|
const properties = partialUpdateFrozenArray(frozenProperties, partialUpdate, (x) => x.id === propertyId);
|
|
217
217
|
this.#documentTypes.updateOne(documentTypeId, { properties });
|
|
218
218
|
}
|
|
219
|
+
// TODO: Refactor: These property methods, should maybe be named without structure in their name.
|
|
220
|
+
async propertyStructureById(propertyId) {
|
|
221
|
+
await this.#init;
|
|
222
|
+
return this.#documentTypes.asObservablePart((docTypes) => {
|
|
223
|
+
for (const docType of docTypes) {
|
|
224
|
+
const foundProp = docType.properties?.find((property) => property.id === propertyId);
|
|
225
|
+
if (foundProp) {
|
|
226
|
+
return foundProp;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return undefined;
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
async propertyStructureByAlias(propertyAlias) {
|
|
233
|
+
await this.#init;
|
|
234
|
+
return this.#documentTypes.asObservablePart((docTypes) => {
|
|
235
|
+
for (const docType of docTypes) {
|
|
236
|
+
const foundProp = docType.properties?.find((property) => property.alias === propertyAlias);
|
|
237
|
+
if (foundProp) {
|
|
238
|
+
return foundProp;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return undefined;
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
async getPropertyStructureById(propertyId) {
|
|
245
|
+
await this.#init;
|
|
246
|
+
for (const docType of this.#documentTypes.getValue()) {
|
|
247
|
+
const foundProp = docType.properties?.find((property) => property.id === propertyId);
|
|
248
|
+
if (foundProp) {
|
|
249
|
+
return foundProp;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return undefined;
|
|
253
|
+
}
|
|
254
|
+
async getPropertyStructureByAlias(propertyAlias) {
|
|
255
|
+
await this.#init;
|
|
256
|
+
for (const docType of this.#documentTypes.getValue()) {
|
|
257
|
+
const foundProp = docType.properties?.find((property) => property.alias === propertyAlias);
|
|
258
|
+
if (foundProp) {
|
|
259
|
+
return foundProp;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
return undefined;
|
|
263
|
+
}
|
|
219
264
|
/*
|
|
220
265
|
rootDocumentTypeName() {
|
|
221
266
|
return this.#documentTypes.asObservablePart((docTypes) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { UmbPropertyEditorConfigCollection } from "../../property-editor/index.js";
|
|
2
2
|
export interface UmbPropertyEditorExtensionElement extends HTMLElement {
|
|
3
3
|
value: unknown;
|
|
4
|
-
config?:
|
|
4
|
+
config?: UmbPropertyEditorConfigCollection;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UmbPropertyEditorExtensionElement } from '../interfaces/index.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { UmbPropertyEditorConfig } from '../../property-editor/index.js';
|
|
3
3
|
import type { ManifestElement, ManifestBase } from '../../../../libs/extension-api/index.js';
|
|
4
4
|
export interface ManifestPropertyEditorUi extends ManifestElement<UmbPropertyEditorExtensionElement> {
|
|
5
5
|
type: 'propertyEditorUi';
|
|
@@ -49,7 +49,7 @@ export interface PropertyEditorConfigProperty {
|
|
|
49
49
|
description?: string;
|
|
50
50
|
alias: string;
|
|
51
51
|
propertyEditorUiAlias: string;
|
|
52
|
-
config?:
|
|
52
|
+
config?: UmbPropertyEditorConfig;
|
|
53
53
|
}
|
|
54
54
|
export interface PropertyEditorConfigDefaultData {
|
|
55
55
|
alias: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type UmbPropertyEditorConfigProperty, type UmbPropertyEditorConfig } from '../index.js';
|
|
2
2
|
import { DataTypePropertyPresentationModel } from '../../../../external/backend-api/index.js';
|
|
3
3
|
/**
|
|
4
4
|
* Extends Array to add utility functions for accessing data type properties
|
|
5
5
|
* by alias, returning either the value or the complete DataTypePropertyPresentationModel object
|
|
6
6
|
*/
|
|
7
|
-
export declare class
|
|
8
|
-
constructor(args:
|
|
7
|
+
export declare class UmbPropertyEditorConfigCollection extends Array<UmbPropertyEditorConfigProperty> {
|
|
8
|
+
constructor(args: UmbPropertyEditorConfig);
|
|
9
9
|
static get [Symbol.species](): ArrayConstructor;
|
|
10
10
|
getValueByAlias<T>(alias: string): T | undefined;
|
|
11
11
|
getByAlias(alias: string): DataTypePropertyPresentationModel | undefined;
|
|
@@ -24,5 +24,5 @@ export declare class UmbDataTypeConfigCollection extends Array<UmbDataTypeConfig
|
|
|
24
24
|
* }`
|
|
25
25
|
*/
|
|
26
26
|
toObject(): Record<string, unknown>;
|
|
27
|
-
equal(other:
|
|
27
|
+
equal(other: UmbPropertyEditorConfigCollection | undefined): boolean;
|
|
28
28
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Extends Array to add utility functions for accessing data type properties
|
|
3
3
|
* by alias, returning either the value or the complete DataTypePropertyPresentationModel object
|
|
4
4
|
*/
|
|
5
|
-
export class
|
|
5
|
+
export class UmbPropertyEditorConfigCollection extends Array {
|
|
6
6
|
constructor(args) {
|
|
7
7
|
super(...args);
|
|
8
8
|
}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
2
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-block-grid
|
|
6
6
|
*/
|
|
7
7
|
export declare class UmbPropertyEditorUIBlockGridElement extends UmbLitElement implements UmbPropertyEditorExtensionElement {
|
|
8
|
-
private _variantContext?;
|
|
9
8
|
value: string;
|
|
10
|
-
config?:
|
|
9
|
+
config?: UmbPropertyEditorConfigCollection;
|
|
11
10
|
private _routes;
|
|
12
11
|
private _routerPath;
|
|
13
12
|
private _activePath;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import type { UmbPropertyEditorConfigCollection } from '../../config/index.js';
|
|
1
2
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
3
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type { UmbDataTypeConfigCollection } from '../../../components/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-block-list
|
|
6
6
|
*/
|
|
7
7
|
export declare class UmbPropertyEditorUIBlockListElement extends UmbLitElement implements UmbPropertyEditorExtensionElement {
|
|
8
8
|
value: string;
|
|
9
|
-
config?:
|
|
9
|
+
config?: UmbPropertyEditorConfigCollection;
|
|
10
10
|
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
-
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
11
|
+
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
12
12
|
}
|
|
13
13
|
export default UmbPropertyEditorUIBlockListElement;
|
|
14
14
|
declare global {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
2
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-checkbox-list
|
|
6
6
|
*/
|
|
@@ -8,7 +8,7 @@ export declare class UmbPropertyEditorUICheckboxListElement extends UmbLitElemen
|
|
|
8
8
|
#private;
|
|
9
9
|
get value(): Array<string>;
|
|
10
10
|
set value(value: Array<string>);
|
|
11
|
-
set config(config:
|
|
11
|
+
set config(config: UmbPropertyEditorConfigCollection | undefined);
|
|
12
12
|
private _list;
|
|
13
13
|
render(): import("lit-html").TemplateResult<1>;
|
|
14
14
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
2
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-color-picker
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export declare class UmbPropertyEditorUIColorPickerElement extends UmbLitElement
|
|
|
9
9
|
value: string;
|
|
10
10
|
private _showLabels;
|
|
11
11
|
private _swatches;
|
|
12
|
-
set config(config:
|
|
12
|
+
set config(config: UmbPropertyEditorConfigCollection | undefined);
|
|
13
13
|
private _onChange;
|
|
14
14
|
render(): import("lit-html").TemplateResult<1>;
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
1
2
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
3
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type { UmbDataTypeConfigCollection } from '../../../components/index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-date-picker
|
|
6
6
|
*/
|
|
@@ -16,7 +16,7 @@ export declare class UmbPropertyEditorUIDatePickerElement extends UmbLitElement
|
|
|
16
16
|
private _max?;
|
|
17
17
|
private _step?;
|
|
18
18
|
private _offsetTime?;
|
|
19
|
-
set config(config:
|
|
19
|
+
set config(config: UmbPropertyEditorConfigCollection | undefined);
|
|
20
20
|
render(): import("lit-html").TemplateResult<1>;
|
|
21
21
|
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
22
22
|
}
|
package/dist-cms/packages/core/property-editor/uis/dropdown/property-editor-ui-dropdown.element.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
2
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-dropdown
|
|
6
6
|
*/
|
|
7
7
|
export declare class UmbPropertyEditorUIDropdownElement extends UmbLitElement implements UmbPropertyEditorExtensionElement {
|
|
8
8
|
value: string;
|
|
9
|
-
config?:
|
|
9
|
+
config?: UmbPropertyEditorConfigCollection;
|
|
10
10
|
render(): import("lit-html").TemplateResult<1>;
|
|
11
11
|
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UmbPropertyEditorExtensionElement } from '../../../extension-registry/index.js';
|
|
2
2
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { UmbPropertyEditorConfigCollection } from '../../index.js';
|
|
4
4
|
/**
|
|
5
5
|
* @element umb-property-editor-ui-eye-dropper
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export declare class UmbPropertyEditorUIEyeDropperElement extends UmbLitElement
|
|
|
9
9
|
value: string;
|
|
10
10
|
private _opacity;
|
|
11
11
|
private _swatches;
|
|
12
|
-
set config(config:
|
|
12
|
+
set config(config: UmbPropertyEditorConfigCollection | undefined);
|
|
13
13
|
private _onChange;
|
|
14
14
|
render(): import("lit-html").TemplateResult<1>;
|
|
15
15
|
}
|