@umbraco-cms/backoffice 14.0.0-e7aa9547 → 14.0.0-f96e8145
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/custom-elements.json +148 -89
- package/dist-cms/libs/observable-api/deep-state.d.ts +1 -1
- package/dist-cms/libs/observable-api/deep-state.js +1 -1
- package/dist-cms/mocks/data/template.data.d.ts +5 -23
- package/dist-cms/mocks/data/template.data.js +44 -21
- package/dist-cms/mocks/handlers/template.handlers.js +4 -0
- package/dist-cms/packages/core/components/button-with-dropdown/button-with-dropdown.element.d.ts +2 -0
- package/dist-cms/packages/core/components/button-with-dropdown/button-with-dropdown.element.js +4 -4
- package/dist-cms/packages/core/components/code-block/code-block.element.d.ts +6 -1
- package/dist-cms/packages/core/components/code-block/code-block.element.js +93 -19
- package/dist-cms/packages/core/components/data-type/data-type-property-collection.class.d.ts +1 -1
- package/dist-cms/packages/core/components/index.d.ts +1 -0
- package/dist-cms/packages/core/components/index.js +1 -1
- package/dist-cms/packages/core/components/property-editor-config/property-editor-config.element.js +2 -3
- package/dist-cms/packages/core/components/ref-property-editor-ui/ref-property-editor-ui.element.js +2 -1
- package/dist-cms/packages/core/content-type/content-type-structure-manager.class.js +11 -11
- package/dist-cms/packages/core/extension-registry/models/dashboard.model.d.ts +6 -6
- package/dist-cms/packages/core/extension-registry/models/property-editor.model.d.ts +1 -1
- package/dist-cms/packages/core/extension-registry/models/section-view.model.d.ts +21 -2
- package/dist-cms/packages/core/index.d.ts +2 -2
- package/dist-cms/packages/core/index.js +5 -5
- package/dist-cms/packages/core/modal/token/dictionary-item-picker-modal.token.d.ts +0 -1
- package/dist-cms/packages/core/modal/token/dictionary-item-picker-modal.token.js +1 -2
- package/dist-cms/packages/core/property-editor/index.d.ts +3 -0
- package/dist-cms/packages/core/property-editor/index.js +3 -0
- package/dist-cms/packages/core/{property-editors → property-editor}/uis/date-picker/property-editor-ui-date-picker.element.js +1 -1
- package/dist-cms/packages/core/section/section-views/section-views.element.js +30 -15
- package/dist-cms/packages/core/store/entity-tree-store.js +3 -3
- package/dist-cms/packages/core/store/file-system-tree.store.js +3 -3
- package/dist-cms/packages/core/tree/tree.context.js +8 -11
- package/dist-cms/packages/core/workspace/types/workspace-property-data.type.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.context.js +5 -5
- package/dist-cms/packages/core/workspace/workspace-property/workspace-property.element.d.ts +1 -1
- package/dist-cms/packages/core/workspace/workspace-split-view-manager.class.js +1 -1
- package/dist-cms/packages/core/workspace/workspace-variant/workspace-variant.context.js +3 -3
- package/dist-cms/packages/documents/document-blueprints/document-blueprint.detail.store.js +1 -1
- package/dist-cms/packages/documents/document-types/repository/document-type.store.js +1 -1
- package/dist-cms/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.d.ts +1 -0
- package/dist-cms/packages/documents/document-types/workspace/views/templates/document-type-workspace-view-templates.element.js +2 -1
- package/dist-cms/packages/documents/documents/repository/document.store.js +1 -1
- package/dist-cms/packages/documents/documents/workspace/document-workspace.context.js +8 -8
- package/dist-cms/packages/documents/documents/workspace/views/info/document-info-workspace-view.element.js +1 -0
- package/dist-cms/packages/media/media/repository/media.store.js +1 -1
- package/dist-cms/packages/media/media/workspace/media-workspace.context.js +1 -1
- package/dist-cms/packages/media/media-types/workspace/media-type-workspace.context.js +1 -1
- package/dist-cms/packages/members/member-groups/repository/member-group.store.js +1 -1
- package/dist-cms/packages/members/member-groups/workspace/member-group-workspace.context.js +1 -1
- package/dist-cms/packages/members/member-types/repository/member-type.store.js +1 -1
- package/dist-cms/packages/members/member-types/workspace/member-type-workspace.context.js +1 -1
- package/dist-cms/packages/settings/data-types/repository/data-type-item.store.js +1 -1
- package/dist-cms/packages/settings/data-types/repository/data-type.store.js +2 -2
- package/dist-cms/packages/settings/data-types/workspace/data-type-workspace.context.js +2 -2
- package/dist-cms/packages/settings/languages/repository/language-item.store.js +1 -1
- package/dist-cms/packages/settings/languages/repository/language.store.js +1 -1
- package/dist-cms/packages/settings/relation-types/repository/relation-type.store.js +1 -1
- package/dist-cms/packages/settings/relation-types/workspace/relation-type-workspace.context.js +2 -2
- package/dist-cms/packages/tags/property-editors/tags/config/storage-type/manifests.js +1 -0
- package/dist-cms/packages/tags/repository/tag.store.js +3 -3
- package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js +3 -31
- package/dist-cms/packages/templating/modals/insert-choose-type-sidebar.element.d.ts +2 -4
- package/dist-cms/packages/templating/modals/insert-choose-type-sidebar.element.js +5 -27
- package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-input.element.js +1 -0
- package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-modal.element.js +5 -4
- package/dist-cms/packages/templating/modals/manifests.d.ts +0 -1
- package/dist-cms/packages/templating/modals/manifests.js +0 -7
- package/dist-cms/packages/templating/templates/components/alias-input/alias-input.js +1 -1
- package/dist-cms/packages/templating/templates/components/input-template/input-template.element.d.ts +3 -2
- package/dist-cms/packages/templating/templates/components/input-template/input-template.element.js +5 -4
- package/dist-cms/packages/templating/templates/index.d.ts +2 -0
- package/dist-cms/packages/templating/templates/index.js +2 -0
- package/dist-cms/packages/templating/templates/manifests.d.ts +1 -1
- package/dist-cms/packages/templating/templates/manifests.js +2 -0
- package/dist-cms/packages/templating/templates/modals/manifests.d.ts +3 -0
- package/dist-cms/packages/templating/templates/modals/manifests.js +10 -0
- package/dist-cms/packages/templating/templates/modals/modal-tokens.d.ts +3 -0
- package/dist-cms/packages/templating/templates/modals/modal-tokens.js +6 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.d.ts +24 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js +156 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts +28 -0
- package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.js +277 -0
- package/dist-cms/packages/templating/templates/repository/sources/template.query-builder.server.data.d.ts +33 -0
- package/dist-cms/packages/templating/templates/repository/sources/template.query-builder.server.data.js +37 -0
- package/dist-cms/packages/templating/templates/repository/template-item.store.js +1 -1
- package/dist-cms/packages/templating/templates/repository/template.repository.d.ts +11 -7
- package/dist-cms/packages/templating/templates/repository/template.repository.js +28 -14
- package/dist-cms/packages/templating/templates/repository/template.store.js +2 -2
- package/dist-cms/packages/templating/templates/workspace/template-workspace-editor.element.js +21 -3
- package/dist-cms/packages/templating/templates/workspace/template-workspace.context.js +2 -1
- package/dist-cms/packages/templating/templates/workspace/template-workspace.element.d.ts +1 -0
- package/dist-cms/packages/templating/templates/workspace/template-workspace.element.js +2 -1
- package/dist-cms/packages/translation/dictionary/repository/dictionary.store.js +1 -1
- package/dist-cms/packages/translation/dictionary/workspace/dictionary-workspace.context.js +2 -2
- package/dist-cms/packages/umbraco-news/manifests.js +0 -1
- package/dist-cms/packages/users/current-user/current-user-history.store.js +1 -1
- package/dist-cms/packages/users/user-groups/repository/user-group-item.store.js +1 -1
- package/dist-cms/packages/users/user-groups/repository/user-group.store.js +1 -1
- package/dist-cms/packages/users/users/repository/user-item.store.js +1 -1
- package/dist-cms/packages/users/users/repository/user.store.js +1 -1
- package/dist-cms/shared/utils/index.d.ts +3 -2
- package/dist-cms/shared/utils/index.js +3 -2
- package/dist-cms/shared/utils/path-folder-name.function.d.ts +2 -0
- package/dist-cms/shared/utils/path-folder-name.function.js +2 -0
- package/dist-cms/tsconfig.tsbuildinfo +1 -1
- package/dist-cms/umbraco-package-schema.json +12 -8
- package/dist-cms/vscode-html-custom-data.json +43 -9
- package/package.json +2 -1
- package/dist-cms/packages/core/property-editors/index.d.ts +0 -2
- package/dist-cms/packages/core/property-editors/index.js +0 -2
- package/dist-cms/packages/templating/modals/insert-value-sidebar.element.d.ts +0 -19
- package/dist-cms/packages/templating/modals/insert-value-sidebar.element.js +0 -135
- /package/dist-cms/packages/core/{property-actions → property-action}/common/clear/property-action-clear.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/common/clear/property-action-clear.element.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/common/copy/property-action-copy.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/common/copy/property-action-copy.element.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/index.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/index.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/index.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/index.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action/property-action.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action/property-action.element.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action/property-action.model.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action/property-action.model.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action-menu/property-action-menu.context.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action-menu/property-action-menu.context.js +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action-menu/property-action-menu.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-actions → property-action}/shared/property-action-menu/property-action-menu.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/events/index.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/events/index.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/events/property-value-change.event.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/events/property-value-change.event.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.BlockGrid.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.BlockGrid.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.BlockList.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.BlockList.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.CheckboxList.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.CheckboxList.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ColorPicker.EyeDropper.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ColorPicker.EyeDropper.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ColorPicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ColorPicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.DateTime.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.DateTime.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Decimal.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Decimal.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Dropdown.Flexible.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Dropdown.Flexible.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.EmailAddress.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.EmailAddress.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.IconPicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.IconPicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ImageCropper.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ImageCropper.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Integer.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Integer.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.JSON.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.JSON.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Label.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Label.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ListView.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.ListView.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MarkdownEditor.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MarkdownEditor.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MediaPicker3.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MediaPicker3.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MemberGroupPicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MemberGroupPicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MemberPicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MemberPicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MultiNodeTreePicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MultiNodeTreePicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MultiUrlPicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MultiUrlPicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MultipleTextString.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.MultipleTextString.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.RadioButtonList.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.RadioButtonList.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.RichText.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.RichText.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Slider.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Slider.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Tags.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.Tags.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.TextArea.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.TextArea.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.TextBox.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.TextBox.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.TrueFalse.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.TrueFalse.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.UploadField.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.UploadField.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.UserPicker.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/Umbraco.UserPicker.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/schemas/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/types/data-type-config.type.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/types/data-type-config.type.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/types/index.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/types/index.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/block-configuration/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/block-configuration/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/block-configuration/property-editor-ui-block-grid-block-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/group-configuration/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/group-configuration/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/group-configuration/property-editor-ui-block-grid-group-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/stylesheet-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/stylesheet-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/config/stylesheet-picker/property-editor-ui-block-grid-stylesheet-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/property-editor-ui-block-grid-inner-test.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/property-editor-ui-block-grid-inner-test.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/property-editor-ui-block-grid.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-grid/property-editor-ui-block-grid.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/config/block-configuration/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/config/block-configuration/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/config/block-configuration/property-editor-ui-block-list-block-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/property-editor-ui-block-list.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/block-list/property-editor-ui-block-list.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/checkbox-list/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/checkbox-list/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/checkbox-list/property-editor-ui-checkbox-list.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/checkbox-list/property-editor-ui-checkbox-list.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/bulk-action-permissions/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/bulk-action-permissions/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/bulk-action-permissions/property-editor-ui-collection-view-bulk-action-permissions.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/column-configuration/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/column-configuration/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/column-configuration/property-editor-ui-collection-view-column-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/layout-configuration/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/layout-configuration/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/layout-configuration/property-editor-ui-collection-view-layout-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/order-by/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/order-by/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/config/order-by/property-editor-ui-collection-view-order-by.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/property-editor-ui-collection-view.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/collection-view/property-editor-ui-collection-view.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/color-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/color-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/color-picker/property-editor-ui-color-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/color-picker/property-editor-ui-color-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/date-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/date-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/date-picker/property-editor-ui-date-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/dropdown/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/dropdown/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/dropdown/property-editor-ui-dropdown.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/dropdown/property-editor-ui-dropdown.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/eye-dropper/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/eye-dropper/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/eye-dropper/property-editor-ui-eye-dropper.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/eye-dropper/property-editor-ui-eye-dropper.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/icon-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/icon-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/icon-picker/property-editor-ui-icon-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/icon-picker/property-editor-ui-icon-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-cropper/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-cropper/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-cropper/property-editor-ui-image-cropper.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-cropper/property-editor-ui-image-cropper.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-crops-configuration/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-crops-configuration/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/image-crops-configuration/property-editor-ui-image-crops-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/label/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/label/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/label/property-editor-ui-label.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/label/property-editor-ui-label.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/markdown-editor/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/markdown-editor/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/markdown-editor/property-editor-ui-markdown-editor.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/markdown-editor/property-editor-ui-markdown-editor.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/media-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/media-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/media-picker/property-editor-ui-media-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/media-picker/property-editor-ui-media-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-group-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-group-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-group-picker/property-editor-ui-member-group-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-group-picker/property-editor-ui-member-group-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-picker/property-editor-ui-member-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/member-picker/property-editor-ui-member-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multi-url-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multi-url-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multi-url-picker/property-editor-ui-multi-url-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/input-multiple-text-string/input-multiple-text-string.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/input-multiple-text-string/input-multiple-text-string.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/input-multiple-text-string-item/input-multiple-text-string-item.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/input-multiple-text-string-item/input-multiple-text-string-item.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/multiple-text-string/property-editor-ui-multiple-text-string.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number/property-editor-ui-number.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number/property-editor-ui-number.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number-range/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number-range/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number-range/property-editor-ui-number-range.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/number-range/property-editor-ui-number-range.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/order-direction/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/order-direction/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/order-direction/property-editor-ui-order-direction.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/order-direction/property-editor-ui-order-direction.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/overlay-size/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/overlay-size/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/overlay-size/property-editor-ui-overlay-size.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/overlay-size/property-editor-ui-overlay-size.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/radio-button-list/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/radio-button-list/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/radio-button-list/property-editor-ui-radio-button-list.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/radio-button-list/property-editor-ui-radio-button-list.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/slider/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/slider/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/slider/property-editor-ui-slider.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/slider/property-editor-ui-slider.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/text-box/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/text-box/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/text-box/property-editor-ui-text-box.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/text-box/property-editor-ui-text-box.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/textarea/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/textarea/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/textarea/property-editor-ui-textarea.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/textarea/property-editor-ui-textarea.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/dimensions/property-editor-ui-tiny-mce-dimensions-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/max-image-size/property-editor-ui-tiny-mce-maximagesize-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/stylesheets/property-editor-ui-tiny-mce-stylesheets-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/config/toolbar/property-editor-ui-tiny-mce-toolbar-configuration.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-code-editor.plugin.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-embeddedmedia.plugin.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-linkpicker.plugin.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-macropicker.plugin.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/plugins/tiny-mce-mediapicker.plugin.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/property-editor-ui-tiny-mce.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tiny-mce/property-editor-ui-tiny-mce.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/toggle/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/toggle/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/toggle/property-editor-ui-toggle.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/toggle/property-editor-ui-toggle.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/config/start-node/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/config/start-node/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/config/start-node/property-editor-ui-tree-picker-start-node.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/property-editor-ui-tree-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/tree-picker/property-editor-ui-tree-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/upload-field/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/upload-field/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/upload-field/property-editor-ui-upload-field.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/upload-field/property-editor-ui-upload-field.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/user-picker/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/user-picker/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/user-picker/property-editor-ui-user-picker.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/user-picker/property-editor-ui-user-picker.element.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/value-type/manifests.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/value-type/manifests.js +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/value-type/property-editor-ui-value-type.element.d.ts +0 -0
- /package/dist-cms/packages/core/{property-editors → property-editor}/uis/value-type/property-editor-ui-value-type.element.js +0 -0
- /package/dist-cms/shared/utils/{umbraco-path.d.ts → umbraco-path.function.d.ts} +0 -0
- /package/dist-cms/shared/utils/{umbraco-path.js → umbraco-path.function.js} +0 -0
package/dist-cms/packages/templating/components/insert-menu/templating-insert-menu.element.js
CHANGED
|
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS } from '../../modals/manifests.js';
|
|
8
8
|
import { UmbDictionaryRepository } from '../../../translation/dictionary/repository/dictionary.repository.js';
|
|
9
9
|
import { getInsertDictionarySnippet, getInsertPartialSnippet } from '../../utils.js';
|
|
10
|
-
import { CodeSnippetType
|
|
10
|
+
import { CodeSnippetType } from '../../modals/insert-choose-type-sidebar.element.js';
|
|
11
11
|
import { customElement, property, css, html } from '../../../../external/lit/index.js';
|
|
12
12
|
import { UUITextStyles } from '../../../../external/uui/index.js';
|
|
13
13
|
import { UMB_DICTIONARY_ITEM_PICKER_MODAL, UMB_MODAL_MANAGER_CONTEXT_TOKEN, UMB_PARTIAL_VIEW_PICKER_MODAL, UmbModalToken, } from '../../../core/modal/index.js';
|
|
@@ -30,10 +30,6 @@ export let UmbTemplatingInsertMenuElement = class UmbTemplatingInsertMenuElement
|
|
|
30
30
|
const { data } = await this.#dictionaryRepository.requestById(id);
|
|
31
31
|
this.value = getInsertDictionarySnippet(data?.name ?? '');
|
|
32
32
|
};
|
|
33
|
-
this.#getUmbracoFieldValueSnippet = async (value) => {
|
|
34
|
-
this.value = value;
|
|
35
|
-
this.#dispatchInsertEvent();
|
|
36
|
-
};
|
|
37
33
|
this.#getPartialViewSnippet = async (modalResult) => {
|
|
38
34
|
this.value = getInsertPartialSnippet(modalResult.selection?.[0] ?? '');
|
|
39
35
|
};
|
|
@@ -53,10 +49,6 @@ export let UmbTemplatingInsertMenuElement = class UmbTemplatingInsertMenuElement
|
|
|
53
49
|
async determineInsertValue(modalResult) {
|
|
54
50
|
const { type, value } = modalResult;
|
|
55
51
|
switch (type) {
|
|
56
|
-
case CodeSnippetType.umbracoField: {
|
|
57
|
-
this.#getUmbracoFieldValueSnippet(value);
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
52
|
case CodeSnippetType.partialView: {
|
|
61
53
|
this.#getPartialViewSnippet(value);
|
|
62
54
|
break;
|
|
@@ -72,16 +64,8 @@ export let UmbTemplatingInsertMenuElement = class UmbTemplatingInsertMenuElement
|
|
|
72
64
|
}
|
|
73
65
|
}
|
|
74
66
|
#getDictionaryItemSnippet;
|
|
75
|
-
#getUmbracoFieldValueSnippet;
|
|
76
67
|
#getPartialViewSnippet;
|
|
77
68
|
#openChooseTypeModal;
|
|
78
|
-
#openInsertValueSidebar() {
|
|
79
|
-
this.#openModal = this._modalContext?.open(UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL);
|
|
80
|
-
this.#openModal?.onSubmit().then((value) => {
|
|
81
|
-
this.value = value;
|
|
82
|
-
this.#dispatchInsertEvent();
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
69
|
#openInsertPartialViewSidebar() {
|
|
86
70
|
this.#openModal = this._modalContext?.open(UMB_PARTIAL_VIEW_PICKER_MODAL);
|
|
87
71
|
this.#openModal?.onSubmit().then((value) => {
|
|
@@ -106,7 +90,7 @@ export let UmbTemplatingInsertMenuElement = class UmbTemplatingInsertMenuElement
|
|
|
106
90
|
render() {
|
|
107
91
|
return html `
|
|
108
92
|
<uui-button-group>
|
|
109
|
-
<uui-button look="secondary" @click=${this.#openChooseTypeModal}>
|
|
93
|
+
<uui-button look="secondary" @click=${this.#openChooseTypeModal} label="Choose value to insert">
|
|
110
94
|
<uui-icon name="umb:add"></uui-icon>Insert</uui-button
|
|
111
95
|
>
|
|
112
96
|
<umb-button-with-dropdown
|
|
@@ -116,18 +100,6 @@ export let UmbTemplatingInsertMenuElement = class UmbTemplatingInsertMenuElement
|
|
|
116
100
|
id="insert-button"
|
|
117
101
|
label="open insert menu">
|
|
118
102
|
<ul id="insert-menu" slot="dropdown">
|
|
119
|
-
<!--
|
|
120
|
-
TODO: uncomment when insert value has endpoint and is properly implemented
|
|
121
|
-
<li>
|
|
122
|
-
<uui-menu-item
|
|
123
|
-
class="insert-menu-item"
|
|
124
|
-
target="_blank"
|
|
125
|
-
label="Value"
|
|
126
|
-
title="Value"
|
|
127
|
-
>
|
|
128
|
-
</uui-menu-item>
|
|
129
|
-
</li> -->
|
|
130
|
-
|
|
131
103
|
<li>
|
|
132
104
|
<uui-menu-item
|
|
133
105
|
class="insert-menu-item"
|
|
@@ -200,7 +172,7 @@ __decorate([
|
|
|
200
172
|
property()
|
|
201
173
|
], UmbTemplatingInsertMenuElement.prototype, "value", void 0);
|
|
202
174
|
__decorate([
|
|
203
|
-
property()
|
|
175
|
+
property({ type: Boolean })
|
|
204
176
|
], UmbTemplatingInsertMenuElement.prototype, "hidePartialView", void 0);
|
|
205
177
|
UmbTemplatingInsertMenuElement = __decorate([
|
|
206
178
|
customElement('umb-templating-insert-menu')
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { UmbModalBaseElement } from '../../../shared/modal/index.js';
|
|
2
|
-
import {
|
|
3
|
-
export declare const UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL: UmbModalToken<object, unknown>;
|
|
2
|
+
import { UmbDictionaryItemPickerModalResult } from '../../core/modal/index.js';
|
|
4
3
|
export interface ChooseInsertTypeModalData {
|
|
5
4
|
hidePartialViews?: boolean;
|
|
6
5
|
}
|
|
7
6
|
export declare enum CodeSnippetType {
|
|
8
7
|
partialView = "partialView",
|
|
9
|
-
umbracoField = "umbracoField",
|
|
10
8
|
dictionaryItem = "dictionaryItem",
|
|
11
9
|
macro = "macro"
|
|
12
10
|
}
|
|
@@ -20,7 +18,7 @@ export default class UmbChooseInsertTypeModalElement extends UmbModalBaseElement
|
|
|
20
18
|
private _modalContext?;
|
|
21
19
|
constructor();
|
|
22
20
|
render(): import("lit-html").TemplateResult<1>;
|
|
23
|
-
static styles: import("@lit/reactive-element/css-tag
|
|
21
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
24
22
|
}
|
|
25
23
|
declare global {
|
|
26
24
|
interface HTMLElementTagNameMap {
|
|
@@ -4,19 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS } from './manifests.js';
|
|
8
7
|
import { UUITextStyles } from '../../../external/uui/index.js';
|
|
9
8
|
import { css, html, customElement } from '../../../external/lit/index.js';
|
|
10
9
|
import { UmbModalBaseElement } from '../../../shared/modal/index.js';
|
|
11
|
-
import { UMB_MODAL_MANAGER_CONTEXT_TOKEN,
|
|
12
|
-
export const UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL = new UmbModalToken(UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS, {
|
|
13
|
-
type: 'sidebar',
|
|
14
|
-
size: 'small',
|
|
15
|
-
});
|
|
10
|
+
import { UMB_MODAL_MANAGER_CONTEXT_TOKEN, UMB_PARTIAL_VIEW_PICKER_MODAL, UMB_DICTIONARY_ITEM_PICKER_MODAL, } from '../../core/modal/index.js';
|
|
16
11
|
export var CodeSnippetType;
|
|
17
12
|
(function (CodeSnippetType) {
|
|
18
13
|
CodeSnippetType["partialView"] = "partialView";
|
|
19
|
-
CodeSnippetType["umbracoField"] = "umbracoField";
|
|
20
14
|
CodeSnippetType["dictionaryItem"] = "dictionaryItem";
|
|
21
15
|
CodeSnippetType["macro"] = "macro";
|
|
22
16
|
})(CodeSnippetType || (CodeSnippetType = {}));
|
|
@@ -31,13 +25,6 @@ let UmbChooseInsertTypeModalElement = class UmbChooseInsertTypeModalElement exte
|
|
|
31
25
|
});
|
|
32
26
|
}
|
|
33
27
|
#openModal;
|
|
34
|
-
#openInsertValueSidebar() {
|
|
35
|
-
this.#openModal = this._modalContext?.open(UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_MODAL);
|
|
36
|
-
this.#openModal?.onSubmit().then((chosenValue) => {
|
|
37
|
-
if (chosenValue)
|
|
38
|
-
this.modalContext?.submit({ value: chosenValue, type: CodeSnippetType.umbracoField });
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
28
|
#openInsertPartialViewSidebar() {
|
|
42
29
|
this.#openModal = this._modalContext?.open(UMB_PARTIAL_VIEW_PICKER_MODAL);
|
|
43
30
|
this.#openModal?.onSubmit().then((partialViewPickerModalResult) => {
|
|
@@ -57,16 +44,6 @@ let UmbChooseInsertTypeModalElement = class UmbChooseInsertTypeModalElement exte
|
|
|
57
44
|
this.modalContext?.submit({ value: dictionaryItemPickerModalResult, type: CodeSnippetType.dictionaryItem });
|
|
58
45
|
});
|
|
59
46
|
}
|
|
60
|
-
//TODO: insert this when we have insert value implemented
|
|
61
|
-
#renderInsertValueButton() {
|
|
62
|
-
return html `<uui-button @click=${this.#openInsertValueSidebar} look="placeholder" label="Insert value"
|
|
63
|
-
><h3>Value</h3>
|
|
64
|
-
<p>
|
|
65
|
-
Displays the value of a named field from the current page, with options to modify the value or fallback to
|
|
66
|
-
alternative values.
|
|
67
|
-
</p></uui-button
|
|
68
|
-
>`;
|
|
69
|
-
}
|
|
70
47
|
//TODO: insert this when we have partial views
|
|
71
48
|
#renderInsertPartialViewButton() {
|
|
72
49
|
return html `${this.data?.hidePartialViews
|
|
@@ -94,7 +71,7 @@ let UmbChooseInsertTypeModalElement = class UmbChooseInsertTypeModalElement exte
|
|
|
94
71
|
</uui-box>
|
|
95
72
|
</div>
|
|
96
73
|
<div slot="actions">
|
|
97
|
-
<uui-button @click=${this._close} look="secondary">Close</uui-button>
|
|
74
|
+
<uui-button @click=${this._close} look="secondary" label="Close">Close</uui-button>
|
|
98
75
|
</div>
|
|
99
76
|
</umb-body-layout>
|
|
100
77
|
`;
|
|
@@ -110,8 +87,9 @@ let UmbChooseInsertTypeModalElement = class UmbChooseInsertTypeModalElement exte
|
|
|
110
87
|
|
|
111
88
|
#main {
|
|
112
89
|
box-sizing: border-box;
|
|
113
|
-
|
|
114
|
-
|
|
90
|
+
height: calc(
|
|
91
|
+
100dvh - var(--umb-header-layout-height) - var(--umb-footer-layout-height) - 2 * var(--uui-size-layout-1)
|
|
92
|
+
);
|
|
115
93
|
}
|
|
116
94
|
|
|
117
95
|
#main uui-button:not(:last-of-type) {
|
package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-input.element.js
CHANGED
|
@@ -52,6 +52,7 @@ export let UmbInsertSectionCheckboxElement = class UmbInsertSectionCheckboxEleme
|
|
|
52
52
|
<uui-input
|
|
53
53
|
required
|
|
54
54
|
placeholder="Enter section name"
|
|
55
|
+
label="Section name"
|
|
55
56
|
id="section-name-input"></uui-input> </uui-form-layout-item
|
|
56
57
|
>${this.showMandatory
|
|
57
58
|
? html `<p slot="if-checked">
|
package/dist-cms/packages/templating/modals/insert-section-modal/insert-section-modal.element.js
CHANGED
|
@@ -91,8 +91,8 @@ let UmbTemplatingInsertSectionModalElement = class UmbTemplatingInsertSectionMod
|
|
|
91
91
|
</uui-box>
|
|
92
92
|
</div>
|
|
93
93
|
<div slot="actions">
|
|
94
|
-
<uui-button @click=${this.#close} look="secondary">Close</uui-button>
|
|
95
|
-
<uui-button @click=${this.#submit} look="primary" color="positive">Submit</uui-button>
|
|
94
|
+
<uui-button @click=${this.#close} look="secondary" label="Close">Close</uui-button>
|
|
95
|
+
<uui-button @click=${this.#submit} look="primary" color="positive" label="Submit">Submit</uui-button>
|
|
96
96
|
</div>
|
|
97
97
|
</umb-body-layout>
|
|
98
98
|
`;
|
|
@@ -108,8 +108,9 @@ let UmbTemplatingInsertSectionModalElement = class UmbTemplatingInsertSectionMod
|
|
|
108
108
|
|
|
109
109
|
#main {
|
|
110
110
|
box-sizing: border-box;
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
height: calc(
|
|
112
|
+
100dvh - var(--umb-header-layout-height) - var(--umb-footer-layout-height) - 2 * var(--uui-size-layout-1)
|
|
113
|
+
);
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
#main umb-insert-section-checkbox:not(:last-of-type) {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ManifestModal } from '../../core/extension-registry/index.js';
|
|
2
2
|
export declare const UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS = "Umb.Modal.Templating.Insert.ChooseType.Sidebar";
|
|
3
|
-
export declare const UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS = "Umb.Modal.Templating.Insert.Value.Sidebar";
|
|
4
3
|
export declare const UMB_MODAL_TEMPLATING_INSERT_SECTION_SIDEBAR_ALIAS = "Umb.Modal.Templating.Insert.Section.Sidebar";
|
|
5
4
|
export declare const manifests: ManifestModal[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS } from '../../core/modal/index.js';
|
|
2
2
|
export const UMB_MODAL_TEMPLATING_INSERT_CHOOSE_TYPE_SIDEBAR_ALIAS = 'Umb.Modal.Templating.Insert.ChooseType.Sidebar';
|
|
3
|
-
export const UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS = 'Umb.Modal.Templating.Insert.Value.Sidebar';
|
|
4
3
|
export const UMB_MODAL_TEMPLATING_INSERT_SECTION_SIDEBAR_ALIAS = 'Umb.Modal.Templating.Insert.Section.Sidebar';
|
|
5
4
|
const modals = [
|
|
6
5
|
{
|
|
@@ -9,12 +8,6 @@ const modals = [
|
|
|
9
8
|
name: 'Choose insert type sidebar',
|
|
10
9
|
loader: () => import('./insert-choose-type-sidebar.element.js'),
|
|
11
10
|
},
|
|
12
|
-
{
|
|
13
|
-
type: 'modal',
|
|
14
|
-
alias: UMB_MODAL_TEMPLATING_INSERT_FIELD_SIDEBAR_ALIAS,
|
|
15
|
-
name: 'Insert value type sidebar',
|
|
16
|
-
loader: () => import('./insert-value-sidebar.element.js'),
|
|
17
|
-
},
|
|
18
11
|
{
|
|
19
12
|
type: 'modal',
|
|
20
13
|
alias: UMB_PARTIAL_VIEW_PICKER_MODAL_ALIAS,
|
|
@@ -16,7 +16,7 @@ export let UmbTemplateAliasInputElement = class UmbTemplateAliasInputElement ext
|
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
18
|
return html `
|
|
19
|
-
<uui-button compact @click=${this.#handleClick}>
|
|
19
|
+
<uui-button compact @click=${this.#handleClick} label="unlock alias input">
|
|
20
20
|
<uui-symbol-lock .open=${this.isOpen} ></uui-symbol-lock>
|
|
21
21
|
</uui-button>
|
|
22
22
|
<input placeholder="Enter alias..." .value=${this.value} ?disabled=${!this.isOpen} @input=${this.#setValue}></input>
|
package/dist-cms/packages/templating/templates/components/input-template/input-template.element.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import '../template-card/template-card.element.js';
|
|
1
2
|
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
2
3
|
import { ItemResponseModelBaseModel } from '../../../../../external/backend-api/index.js';
|
|
3
4
|
declare const UmbInputTemplateElement_base: (new (...args: any[]) => import("../../../../../external/uui/index.js").FormControlMixinInterface) & typeof UmbLitElement;
|
|
@@ -32,8 +33,8 @@ export declare class UmbInputTemplateElement extends UmbInputTemplateElement_bas
|
|
|
32
33
|
*/
|
|
33
34
|
maxMessage: string;
|
|
34
35
|
_selectedIds: Array<string>;
|
|
35
|
-
get selectedIds(): Array<string
|
|
36
|
-
set selectedIds(newKeys: Array<string>);
|
|
36
|
+
get selectedIds(): Array<string> | undefined;
|
|
37
|
+
set selectedIds(newKeys: Array<string> | undefined);
|
|
37
38
|
_defaultId: string;
|
|
38
39
|
get defaultId(): string;
|
|
39
40
|
set defaultId(newId: string);
|
package/dist-cms/packages/templating/templates/components/input-template/input-template.element.js
CHANGED
|
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
+
import '../template-card/template-card.element.js';
|
|
7
8
|
import { UmbTemplateRepository } from '../../repository/template.repository.js';
|
|
8
9
|
import { css, html, customElement, property, state } from '../../../../../external/lit/index.js';
|
|
9
10
|
import { UUITextStyles, FormControlMixin } from '../../../../../external/uui/index.js';
|
|
@@ -14,7 +15,7 @@ export let UmbInputTemplateElement = class UmbInputTemplateElement extends FormC
|
|
|
14
15
|
return this._selectedIds;
|
|
15
16
|
}
|
|
16
17
|
set selectedIds(newKeys) {
|
|
17
|
-
this._selectedIds = newKeys;
|
|
18
|
+
this._selectedIds = newKeys ?? [];
|
|
18
19
|
this.#observePickedTemplates();
|
|
19
20
|
}
|
|
20
21
|
get defaultId() {
|
|
@@ -69,7 +70,7 @@ export let UmbInputTemplateElement = class UmbInputTemplateElement extends FormC
|
|
|
69
70
|
// TODO: Change experience, so its not multi selectable. But instead already picked templates should be unpickable. (awaiting general picker features for such)
|
|
70
71
|
const modalContext = this._modalContext?.open(UMB_TEMPLATE_PICKER_MODAL, {
|
|
71
72
|
multiple: true,
|
|
72
|
-
selection: [...this.
|
|
73
|
+
selection: [...this._selectedIds],
|
|
73
74
|
pickableFilter: (template) => template.id !== null,
|
|
74
75
|
});
|
|
75
76
|
modalContext?.onSubmit().then((data) => {
|
|
@@ -89,7 +90,7 @@ export let UmbInputTemplateElement = class UmbInputTemplateElement extends FormC
|
|
|
89
90
|
In current backoffice we just prevent deleting a default when there are other templates. But if its the only one its okay. This is a weird experience, so we should make something that makes more sense.
|
|
90
91
|
BTW. its weird cause the damage of removing the default template is equally bad when there is one or more templates.
|
|
91
92
|
*/
|
|
92
|
-
this.selectedIds = this.
|
|
93
|
+
this.selectedIds = this._selectedIds.filter((x) => x !== id);
|
|
93
94
|
}
|
|
94
95
|
#openTemplate(e) {
|
|
95
96
|
const id = e.target.value;
|
|
@@ -153,7 +154,7 @@ __decorate([
|
|
|
153
154
|
property({ type: String, attribute: 'min-message' })
|
|
154
155
|
], UmbInputTemplateElement.prototype, "maxMessage", void 0);
|
|
155
156
|
__decorate([
|
|
156
|
-
property({ type:
|
|
157
|
+
property({ type: Array })
|
|
157
158
|
], UmbInputTemplateElement.prototype, "selectedIds", null);
|
|
158
159
|
__decorate([
|
|
159
160
|
property({ type: String })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const manifests: (import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestRepository | import("../../core/index.js").ManifestStore | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestItemStore | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction | import("../../core/index.js").ManifestWorkspaceEditorView)[];
|
|
1
|
+
export declare const manifests: (import("../../core/index.js").ManifestEntityAction | import("../../core/index.js").ManifestMenuItemTreeKind | import("../../core/index.js").ManifestModal | import("../../core/index.js").ManifestRepository | import("../../core/index.js").ManifestStore | import("../../core/index.js").ManifestTreeStore | import("../../core/index.js").ManifestItemStore | import("../../core/index.js").ManifestTree | import("../../core/index.js").ManifestTreeItem | import("../../core/index.js").ManifestWorkspace | import("../../core/index.js").ManifestWorkspaceAction | import("../../core/index.js").ManifestWorkspaceEditorView)[];
|
|
@@ -3,7 +3,9 @@ import { manifests as menuItemManifests } from './menu-item/manifests.js';
|
|
|
3
3
|
import { manifests as treeManifests } from './tree/manifests.js';
|
|
4
4
|
import { manifests as entityActionsManifests } from './entity-actions/manifests.js';
|
|
5
5
|
import { manifests as workspaceManifests } from './workspace/manifests.js';
|
|
6
|
+
import { manifests as modalManifests } from './modals/manifests.js';
|
|
6
7
|
export const manifests = [
|
|
8
|
+
...modalManifests,
|
|
7
9
|
...repositoryManifests,
|
|
8
10
|
...menuItemManifests,
|
|
9
11
|
...treeManifests,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const UMB_MODAL_TEMPLATING_QUERY_BUILDER_SIDEBAR_ALIAS = 'Umb.Modal.Templating.Query.Builder.Sidebar';
|
|
2
|
+
const modals = [
|
|
3
|
+
{
|
|
4
|
+
type: 'modal',
|
|
5
|
+
alias: UMB_MODAL_TEMPLATING_QUERY_BUILDER_SIDEBAR_ALIAS,
|
|
6
|
+
name: 'Template query builder',
|
|
7
|
+
loader: () => import('./query-builder/query-builder.element.js'),
|
|
8
|
+
},
|
|
9
|
+
];
|
|
10
|
+
export const manifests = [...modals];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { TemplateQueryBuilderModalData, TemplateQueryBuilderModalResult } from './query-builder/query-builder.element.js';
|
|
2
|
+
import { UmbModalToken } from '../../../core/modal/index.js';
|
|
3
|
+
export declare const UMB_TEMPLATE_QUERY_BUILDER_MODAL: UmbModalToken<TemplateQueryBuilderModalData, TemplateQueryBuilderModalResult>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UMB_MODAL_TEMPLATING_QUERY_BUILDER_SIDEBAR_ALIAS } from './manifests.js';
|
|
2
|
+
import { UmbModalToken } from '../../../core/modal/index.js';
|
|
3
|
+
export const UMB_TEMPLATE_QUERY_BUILDER_MODAL = new UmbModalToken(UMB_MODAL_TEMPLATING_QUERY_BUILDER_SIDEBAR_ALIAS, {
|
|
4
|
+
type: 'sidebar',
|
|
5
|
+
size: 'large',
|
|
6
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PropertyValueMap } from '../../../../../external/lit/index.js';
|
|
2
|
+
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
3
|
+
import { TemplateQueryExecuteFilterPresentationModel, TemplateQueryPropertyTypeModel, TemplateQuerySettingsResponseModel } from '../../../../../external/backend-api/index.js';
|
|
4
|
+
export declare class UmbQueryBuilderFilterElement extends UmbLitElement {
|
|
5
|
+
#private;
|
|
6
|
+
private _propertyAliasDropdown?;
|
|
7
|
+
private _operatorDropdown?;
|
|
8
|
+
filter: TemplateQueryExecuteFilterPresentationModel;
|
|
9
|
+
unremovable: boolean;
|
|
10
|
+
settings?: TemplateQuerySettingsResponseModel;
|
|
11
|
+
currentPropertyType: TemplateQueryPropertyTypeModel | null;
|
|
12
|
+
get isFilterValid(): boolean;
|
|
13
|
+
protected willUpdate(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
14
|
+
private _renderOperatorsDropdown;
|
|
15
|
+
private _renderConstraintValueInput;
|
|
16
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
+
static styles: import("@lit/reactive-element/css-tag").CSSResult[];
|
|
18
|
+
}
|
|
19
|
+
export default UmbQueryBuilderFilterElement;
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'umb-query-builder-filter': UmbQueryBuilderFilterElement;
|
|
23
|
+
}
|
|
24
|
+
}
|
package/dist-cms/packages/templating/templates/modals/query-builder/query-builder-filter.element.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { UUITextStyles } from '../../../../../external/uui/index.js';
|
|
8
|
+
import { css, html, customElement, property, query, state } from '../../../../../external/lit/index.js';
|
|
9
|
+
import { UmbLitElement } from '../../../../../shared/lit-element/index.js';
|
|
10
|
+
import { TemplateQueryPropertyTypeModel, } from '../../../../../external/backend-api/index.js';
|
|
11
|
+
export let UmbQueryBuilderFilterElement = class UmbQueryBuilderFilterElement extends UmbLitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.filter = {};
|
|
15
|
+
this.unremovable = false;
|
|
16
|
+
this.currentPropertyType = null;
|
|
17
|
+
this.#setPropertyAlias = (e) => {
|
|
18
|
+
const target = e.target;
|
|
19
|
+
const oldCurrentPropertyType = this.currentPropertyType;
|
|
20
|
+
this.filter = { ...this.filter, propertyAlias: target.value };
|
|
21
|
+
this.currentPropertyType =
|
|
22
|
+
this.settings?.properties?.find((p) => p.alias === this.filter.propertyAlias)?.type ?? null;
|
|
23
|
+
if (oldCurrentPropertyType !== this.currentPropertyType)
|
|
24
|
+
this.#resetOperator();
|
|
25
|
+
this._propertyAliasDropdown?.closePopover();
|
|
26
|
+
};
|
|
27
|
+
this.#setConstrainValue = (e) => {
|
|
28
|
+
const target = e.target;
|
|
29
|
+
this.filter = { ...this.filter, constraintValue: target.value };
|
|
30
|
+
};
|
|
31
|
+
this.#setOperator = (e) => {
|
|
32
|
+
const target = e.target;
|
|
33
|
+
this.filter = { ...this.filter, operator: target.value };
|
|
34
|
+
this._operatorDropdown?.closePopover();
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
#setPropertyAlias;
|
|
38
|
+
#setConstrainValue;
|
|
39
|
+
#setOperator;
|
|
40
|
+
#resetOperator() {
|
|
41
|
+
this.filter = { ...this.filter, operator: undefined };
|
|
42
|
+
}
|
|
43
|
+
#resetFilter() {
|
|
44
|
+
this.filter = {};
|
|
45
|
+
}
|
|
46
|
+
#removeOrReset() {
|
|
47
|
+
if (this.unremovable)
|
|
48
|
+
this.#resetFilter();
|
|
49
|
+
else
|
|
50
|
+
this.dispatchEvent(new Event('remove-filter'));
|
|
51
|
+
}
|
|
52
|
+
#addFilter() {
|
|
53
|
+
this.dispatchEvent(new Event('add-filter'));
|
|
54
|
+
}
|
|
55
|
+
get isFilterValid() {
|
|
56
|
+
return Object.keys(this.filter).length === 3 && Object.values(this.filter).every((v) => !!v);
|
|
57
|
+
}
|
|
58
|
+
willUpdate(_changedProperties) {
|
|
59
|
+
if (_changedProperties.has('filter')) {
|
|
60
|
+
if (this.isFilterValid) {
|
|
61
|
+
this.dispatchEvent(new Event('update-query'));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
_renderOperatorsDropdown() {
|
|
66
|
+
return html `<umb-button-with-dropdown look="outline" id="operator-dropdown" label="choose operator">
|
|
67
|
+
${this.filter?.operator ?? ''}
|
|
68
|
+
<uui-combobox-list slot="dropdown" @change=${this.#setOperator} class="options-list">
|
|
69
|
+
${this.settings?.operators
|
|
70
|
+
?.filter((operator) => this.currentPropertyType ? operator.applicableTypes?.includes(this.currentPropertyType) : true)
|
|
71
|
+
.map((operator) => html `<uui-combobox-list-option .value=${operator.operator ?? ''}
|
|
72
|
+
>${operator.operator}</uui-combobox-list-option
|
|
73
|
+
>`)}</uui-combobox-list
|
|
74
|
+
>
|
|
75
|
+
</umb-button-with-dropdown>`;
|
|
76
|
+
}
|
|
77
|
+
_renderConstraintValueInput() {
|
|
78
|
+
switch (this.currentPropertyType) {
|
|
79
|
+
case TemplateQueryPropertyTypeModel.INTEGER:
|
|
80
|
+
return html `<uui-input type="number" @change=${this.#setConstrainValue} label="constrain value"></uui-input>`;
|
|
81
|
+
case TemplateQueryPropertyTypeModel.STRING:
|
|
82
|
+
return html `<uui-input type="text" @change=${this.#setConstrainValue} label="constrain value"></uui-input>`;
|
|
83
|
+
case TemplateQueryPropertyTypeModel.DATE_TIME:
|
|
84
|
+
return html `<uui-input type="date" @change=${this.#setConstrainValue} label="constrain value"></uui-input>`;
|
|
85
|
+
default:
|
|
86
|
+
return html `<uui-input type="text" @change=${this.#setConstrainValue} label="constrain value"></uui-input>`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
render() {
|
|
90
|
+
return html `
|
|
91
|
+
<span>${this.unremovable ? 'where' : 'and'}</span>
|
|
92
|
+
<umb-button-with-dropdown look="outline" id="property-alias-dropdown" label="Property alias"
|
|
93
|
+
>${this.filter?.propertyAlias ?? ''}
|
|
94
|
+
<uui-combobox-list slot="dropdown" @change=${this.#setPropertyAlias} class="options-list">
|
|
95
|
+
${this.settings?.properties?.map((property) => html `<uui-combobox-list-option tabindex="0" .value=${property.alias ?? ''}
|
|
96
|
+
>${property.alias}</uui-combobox-list-option
|
|
97
|
+
>`)}
|
|
98
|
+
</uui-combobox-list></umb-button-with-dropdown
|
|
99
|
+
>
|
|
100
|
+
${this.filter?.propertyAlias ? this._renderOperatorsDropdown() : ''}
|
|
101
|
+
${this.filter?.operator ? this._renderConstraintValueInput() : ''}
|
|
102
|
+
<uui-button-group>
|
|
103
|
+
<uui-button title="Add filter" label="Add filter" compact @click=${this.#addFilter}
|
|
104
|
+
><uui-icon name="add"></uui-icon
|
|
105
|
+
></uui-button>
|
|
106
|
+
<uui-button title="Remove filter" label="Remove filter" compact @click=${this.#removeOrReset}
|
|
107
|
+
><uui-icon name="delete"></uui-icon
|
|
108
|
+
></uui-button>
|
|
109
|
+
</uui-button-group>
|
|
110
|
+
`;
|
|
111
|
+
}
|
|
112
|
+
static { this.styles = [
|
|
113
|
+
UUITextStyles,
|
|
114
|
+
css `
|
|
115
|
+
:host {
|
|
116
|
+
display: flex;
|
|
117
|
+
gap: 10px;
|
|
118
|
+
border-bottom: 1px solid #f3f3f5;
|
|
119
|
+
align-items: center;
|
|
120
|
+
padding: 20px 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.options-list {
|
|
124
|
+
min-width: 25ch;
|
|
125
|
+
background-color: var(--uui-color-surface);
|
|
126
|
+
box-shadow: var(--uui-shadow-depth-3);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
uui-combobox-list-option {
|
|
130
|
+
padding: 8px 20px;
|
|
131
|
+
}
|
|
132
|
+
`,
|
|
133
|
+
]; }
|
|
134
|
+
};
|
|
135
|
+
__decorate([
|
|
136
|
+
query('#property-alias-dropdown')
|
|
137
|
+
], UmbQueryBuilderFilterElement.prototype, "_propertyAliasDropdown", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
query('#operator-dropdown')
|
|
140
|
+
], UmbQueryBuilderFilterElement.prototype, "_operatorDropdown", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
property({ type: Object, attribute: false })
|
|
143
|
+
], UmbQueryBuilderFilterElement.prototype, "filter", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
property({ type: Boolean })
|
|
146
|
+
], UmbQueryBuilderFilterElement.prototype, "unremovable", void 0);
|
|
147
|
+
__decorate([
|
|
148
|
+
property({ type: Object, attribute: false })
|
|
149
|
+
], UmbQueryBuilderFilterElement.prototype, "settings", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
state()
|
|
152
|
+
], UmbQueryBuilderFilterElement.prototype, "currentPropertyType", void 0);
|
|
153
|
+
UmbQueryBuilderFilterElement = __decorate([
|
|
154
|
+
customElement('umb-query-builder-filter')
|
|
155
|
+
], UmbQueryBuilderFilterElement);
|
|
156
|
+
export default UmbQueryBuilderFilterElement;
|
package/dist-cms/packages/templating/templates/modals/query-builder/query-builder.element.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { UmbModalBaseElement } from '../../../../../shared/modal/index.js';
|
|
2
|
+
import './query-builder-filter.element.js';
|
|
3
|
+
export interface TemplateQueryBuilderModalData {
|
|
4
|
+
hidePartialViews?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface TemplateQueryBuilderModalResult {
|
|
7
|
+
value: string;
|
|
8
|
+
}
|
|
9
|
+
export default class UmbChooseInsertTypeModalElement extends UmbModalBaseElement<TemplateQueryBuilderModalData, TemplateQueryBuilderModalResult> {
|
|
10
|
+
#private;
|
|
11
|
+
private _contentTypeDropdown?;
|
|
12
|
+
private _sortDropdown?;
|
|
13
|
+
private _filterContainer?;
|
|
14
|
+
private _filterElements;
|
|
15
|
+
private _templateQuery?;
|
|
16
|
+
private _queryRequest;
|
|
17
|
+
private _queryBuilderSettings?;
|
|
18
|
+
private _selectedRootContentName;
|
|
19
|
+
private _defaultSortDirection;
|
|
20
|
+
constructor();
|
|
21
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
static styles: import("@lit/reactive-element/css-tag.js").CSSResult[];
|
|
23
|
+
}
|
|
24
|
+
declare global {
|
|
25
|
+
interface HTMLElementTagNameMap {
|
|
26
|
+
'umb-templating-query-builder-modal': UmbChooseInsertTypeModalElement;
|
|
27
|
+
}
|
|
28
|
+
}
|