@blokkli/editor 2.0.0-alpha.59 → 2.0.0-alpha.61
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/module.json +1 -1
- package/dist/module.mjs +28 -11
- package/dist/modules/agent/index.mjs +2 -5
- package/dist/modules/agent/runtime/app/features/agent/Container.vue +3 -3
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +15 -3
- package/dist/modules/agent/runtime/app/features/agent/index.vue +5 -1
- package/dist/modules/agent/runtime/app/features/agent/types.d.ts +2 -1
- package/dist/modules/agent/runtime/app/helpers/mutationResult.d.ts +38 -0
- package/dist/modules/agent/runtime/app/helpers/mutationResult.js +49 -0
- package/dist/modules/agent/runtime/app/prompts/fixReadability.js +3 -3
- package/dist/modules/agent/runtime/app/providers/agentProvider.d.ts +2 -1
- package/dist/modules/agent/runtime/app/providers/agentProvider.js +6 -6
- package/dist/modules/agent/runtime/app/providers/toolsProvider.js +3 -13
- package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.d.ts +25 -0
- package/dist/modules/agent/runtime/app/tools/add_content_search_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_fragment/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/add_fragment/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.d.ts +24 -0
- package/dist/modules/agent/runtime/app/tools/add_media_paragraph/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.d.ts +32 -0
- package/dist/modules/agent/runtime/app/tools/add_paragraphs/index.js +6 -4
- package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/add_reusable_paragraph/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/add_template/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/add_template/index.js +5 -3
- package/dist/modules/agent/runtime/app/tools/ask_question/index.d.ts +3 -3
- package/dist/modules/agent/runtime/app/tools/ask_question/index.js +7 -6
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.d.vue.ts +29 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue +172 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/Component.vue.d.ts +29 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.d.ts +28 -0
- package/dist/modules/agent/runtime/app/tools/auto_translate_paragraphs/index.js +80 -0
- package/dist/modules/agent/runtime/app/tools/check_readability_for_texts/index.d.ts +17 -0
- package/dist/modules/agent/runtime/app/tools/check_readability_for_texts/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +16 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +10 -1
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/delete_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/detach_reusable_paragraph/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/duplicate_paragraphs/index.js +5 -3
- package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.d.ts +31 -0
- package/dist/modules/agent/runtime/app/tools/find_paragraphs/index.js +7 -7
- package/dist/modules/agent/runtime/app/tools/get_all_fragments/index.d.ts +7 -0
- package/dist/modules/agent/runtime/app/tools/get_all_fragments/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.d.ts +10 -0
- package/dist/modules/agent/runtime/app/tools/get_all_page_content/index.js +3 -3
- package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.d.ts +35 -0
- package/dist/modules/agent/runtime/app/tools/get_bundle_info/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_child_paragraphs/index.d.ts +20 -0
- package/dist/modules/agent/runtime/app/tools/get_child_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_content_fields/index.d.ts +30 -0
- package/dist/modules/agent/runtime/app/tools/get_content_fields/index.js +15 -11
- package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.d.ts +25 -0
- package/dist/modules/agent/runtime/app/tools/get_mutation_history/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_page_structure/index.d.ts +8 -0
- package/dist/modules/agent/runtime/app/tools/get_page_structure/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_page_text/index.d.ts +8 -0
- package/dist/modules/agent/runtime/app/tools/get_page_text/index.js +65 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.d.ts +81 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraph_context/index.js +20 -12
- package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.d.ts +14 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraph_options/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.d.ts +38 -0
- package/dist/modules/agent/runtime/app/tools/get_paragraphs_in_viewport/index.js +7 -6
- package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.d.ts +12 -0
- package/dist/modules/agent/runtime/app/tools/get_readability_issues/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/get_referenced_entities/index.js +62 -0
- package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.d.ts +9 -0
- package/dist/modules/agent/runtime/app/tools/get_selected_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/go_to_history_index/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/helpers.d.ts +8 -2
- package/dist/modules/agent/runtime/app/tools/helpers.js +9 -9
- package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.d.ts +22 -0
- package/dist/modules/agent/runtime/app/tools/move_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.d.ts +21 -0
- package/dist/modules/agent/runtime/app/tools/rearrange_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.d.ts +20 -0
- package/dist/modules/agent/runtime/app/tools/replace_content_search_item/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/replace_media_field/index.d.ts +19 -0
- package/dist/modules/agent/runtime/app/tools/replace_media_field/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/schemas.d.ts +25 -5
- package/dist/modules/agent/runtime/app/tools/schemas.js +37 -10
- package/dist/modules/agent/runtime/app/tools/search_content/index.d.ts +15 -0
- package/dist/modules/agent/runtime/app/tools/search_content/index.js +8 -7
- package/dist/modules/agent/runtime/app/tools/search_media/index.d.ts +5 -1
- package/dist/modules/agent/runtime/app/tools/search_media/index.js +3 -3
- package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/search_reusable_paragraphs/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/search_templates/index.d.ts +13 -0
- package/dist/modules/agent/runtime/app/tools/search_templates/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/search_text/index.d.ts +15 -0
- package/dist/modules/agent/runtime/app/tools/search_text/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/select_media/Component.vue +1 -1
- package/dist/modules/agent/runtime/app/tools/select_media/index.d.ts +2 -2
- package/dist/modules/agent/runtime/app/tools/select_media/index.js +2 -2
- package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.d.ts +19 -0
- package/dist/modules/agent/runtime/app/tools/set_paragraph_options/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.d.ts +17 -0
- package/dist/modules/agent/runtime/app/tools/swap_paragraphs/index.js +3 -2
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.d.ts +13 -4
- package/dist/modules/agent/runtime/app/tools/update_text_fields/index.js +8 -7
- package/dist/modules/agent/runtime/app/tools/web_fetch/index.d.ts +17 -0
- package/dist/modules/agent/runtime/app/tools/web_fetch/index.js +2 -2
- package/dist/modules/agent/runtime/app/types/index.d.ts +6 -9
- package/dist/modules/agent/runtime/app/types/index.js +4 -3
- package/dist/modules/agent/runtime/server/agent.js +1 -2
- package/dist/modules/agent/runtime/server/classes/Session/index.d.ts +2 -2
- package/dist/modules/agent/runtime/server/classes/Session/index.js +10 -5
- package/dist/modules/agent/runtime/server/default-system-prompts/important-rules.js +2 -1
- package/dist/modules/agent/runtime/shared/toolParams.d.ts +19 -0
- package/dist/modules/agent/runtime/shared/toolParams.js +6 -0
- package/dist/modules/agent/runtime/shared/toolResult.d.ts +4 -0
- package/dist/modules/agent/runtime/shared/toolResult.js +5 -0
- package/dist/modules/agent/runtime/shared/types.d.ts +23 -4
- package/dist/modules/agent/runtime/shared/types.js +6 -1
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +4 -13
- package/dist/modules/drupal/graphql/features/notifications.graphql +39 -0
- package/dist/modules/drupal/index.mjs +6 -1
- package/dist/modules/drupal/runtime/adapter/index.js +38 -0
- package/dist/runtime/editor/components/Actions/ItemDropdown/Item.vue +0 -1
- package/dist/runtime/editor/components/Actions/ScrollArrow/index.d.vue.ts +13 -0
- package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue +52 -0
- package/dist/runtime/editor/components/Actions/ScrollArrow/index.vue.d.ts +13 -0
- package/dist/runtime/editor/components/Actions/Title/index.vue +9 -8
- package/dist/runtime/editor/components/Actions/index.vue +47 -7
- package/dist/runtime/editor/components/Actions/useToolbarScroll.d.ts +25 -0
- package/dist/runtime/editor/components/Actions/useToolbarScroll.js +125 -0
- package/dist/runtime/editor/components/AddListItem/index.vue +0 -2
- package/dist/runtime/editor/components/AppMenu/MenuButton.vue +1 -3
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +4 -1
- package/dist/runtime/editor/components/Avatar/index.vue +0 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/BundleSelector/index.vue +0 -4
- package/dist/runtime/editor/components/Dialog/index.d.vue.ts +2 -2
- package/dist/runtime/editor/components/Dialog/index.vue +1 -3
- package/dist/runtime/editor/components/Dialog/index.vue.d.ts +2 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.d.vue.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue +12 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/Item.vue.d.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.d.vue.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +14 -2
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue.d.ts +8 -0
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.d.vue.ts +2 -2
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +0 -2
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue.d.ts +2 -2
- package/dist/runtime/editor/components/DiffApproval/index.vue +3 -2
- package/dist/runtime/editor/components/Dropdown/index.vue +0 -39
- package/dist/runtime/editor/components/DropdownItem/index.d.vue.ts +12 -2
- package/dist/runtime/editor/components/DropdownItem/index.vue +46 -2
- package/dist/runtime/editor/components/DropdownItem/index.vue.d.ts +12 -2
- package/dist/runtime/editor/components/FlexTextarea/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/FlexTextarea/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Form/Datepicker/index.vue +0 -1
- package/dist/runtime/editor/components/Form/TextDark/index.vue +0 -1
- package/dist/runtime/editor/components/Form/Textarea/index.vue +0 -1
- package/dist/runtime/editor/components/Form/Toggle/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/Form/Toggle/index.vue +9 -2
- package/dist/runtime/editor/components/Form/Toggle/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/FormOverlay/index.vue +0 -1
- package/dist/runtime/editor/components/Icon/index.vue +0 -2
- package/dist/runtime/editor/components/Messages/Item/index.vue +4 -1
- package/dist/runtime/editor/components/Messages/index.vue +3 -0
- package/dist/runtime/editor/components/Panel/Sheet/index.vue +1 -1
- package/dist/runtime/editor/components/Popup/index.vue +0 -2
- package/dist/runtime/editor/components/RichText/Editor/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/RichText/Editor/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/ScheduleDate/index.vue +1 -3
- package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue +74 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/Button/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.d.vue.ts +7 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue +16 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/List/index.vue.d.ts +7 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue +57 -0
- package/dist/runtime/editor/components/Toolbar/ViewOptions/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Toolbar/index.vue +3 -56
- package/dist/runtime/editor/components/ToolbarDropdown/index.d.vue.ts +21 -0
- package/dist/runtime/editor/components/ToolbarDropdown/index.vue +36 -0
- package/dist/runtime/editor/components/ToolbarDropdown/index.vue.d.ts +21 -0
- package/dist/runtime/editor/components/Tooltip/Context.vue +3 -1
- package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +1 -1
- package/dist/runtime/editor/components/Tooltip/index.vue +4 -1
- package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +1 -1
- package/dist/runtime/editor/components/index.d.ts +1 -0
- package/dist/runtime/editor/components/index.js +1 -0
- package/dist/runtime/editor/composables/defineViewOption.d.ts +5 -0
- package/dist/runtime/editor/composables/defineViewOption.js +10 -0
- package/dist/runtime/editor/composables/index.d.ts +3 -0
- package/dist/runtime/editor/composables/index.js +2 -0
- package/dist/runtime/editor/composables/useDismiss.d.ts +30 -0
- package/dist/runtime/editor/composables/useDismiss.js +43 -0
- package/dist/runtime/editor/composables/useGlobalBlokkliObject.d.ts +3 -3
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/events/index.d.ts +23 -0
- package/dist/runtime/editor/features/add-list/Actions/index.vue +0 -1
- package/dist/runtime/editor/features/add-list/Blocks/index.vue +0 -1
- package/dist/runtime/editor/features/add-list/Help/Item.vue +2 -7
- package/dist/runtime/editor/features/add-list/Help/index.vue +1 -1
- package/dist/runtime/editor/features/add-list/index.vue +0 -2
- package/dist/runtime/editor/features/anchors/index.vue +11 -11
- package/dist/runtime/editor/features/anchors/types.d.ts +1 -0
- package/dist/runtime/editor/features/anchors/types.js +1 -0
- package/dist/runtime/editor/features/artboard/Renderer.vue +30 -28
- package/dist/runtime/editor/features/block-scheduler/Dialog/ScheduleSection.vue +0 -3
- package/dist/runtime/editor/features/block-scheduler/index.vue +0 -1
- package/dist/runtime/editor/features/block-transfer/SummaryDialog/index.vue +0 -4
- package/dist/runtime/editor/features/breadcrumbs/Crumb/index.vue +0 -5
- package/dist/runtime/editor/features/changelog/changelog.json +16 -0
- package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +0 -3
- package/dist/runtime/editor/features/command-palette/Palette/index.vue +0 -1
- package/dist/runtime/editor/features/comments/AddForm/index.vue +0 -1
- package/dist/runtime/editor/features/comments/Comment/Actions/index.vue +0 -4
- package/dist/runtime/editor/features/comments/Comment/index.d.vue.ts +14 -0
- package/dist/runtime/editor/features/comments/Comment/index.vue +29 -8
- package/dist/runtime/editor/features/comments/Comment/index.vue.d.ts +14 -0
- package/dist/runtime/editor/features/comments/CommentInput/index.d.vue.ts +1 -1
- package/dist/runtime/editor/features/comments/CommentInput/index.vue +0 -3
- package/dist/runtime/editor/features/comments/CommentInput/index.vue.d.ts +1 -1
- package/dist/runtime/editor/features/comments/Sidebar/AddForm/index.vue +0 -1
- package/dist/runtime/editor/features/comments/Sidebar/index.d.vue.ts +16 -0
- package/dist/runtime/editor/features/comments/Sidebar/index.vue +13 -8
- package/dist/runtime/editor/features/comments/Sidebar/index.vue.d.ts +16 -0
- package/dist/runtime/editor/features/comments/Thread/ReplyForm/index.vue +0 -1
- package/dist/runtime/editor/features/comments/Thread/index.d.vue.ts +16 -0
- package/dist/runtime/editor/features/comments/Thread/index.vue +26 -6
- package/dist/runtime/editor/features/comments/Thread/index.vue.d.ts +16 -0
- package/dist/runtime/editor/features/comments/index.vue +28 -3
- package/dist/runtime/editor/features/delete/types.d.ts +1 -0
- package/dist/runtime/editor/features/delete/types.js +1 -0
- package/dist/runtime/editor/features/dev-mode/index.vue +17 -15
- package/dist/runtime/editor/features/dragging-overlay/DragItems/index.vue +1 -0
- package/dist/runtime/editor/features/duplicate/types.d.ts +1 -0
- package/dist/runtime/editor/features/duplicate/types.js +1 -0
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +0 -2
- package/dist/runtime/editor/features/editable-field/Overlay/Plaintext/index.vue +0 -1
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +0 -5
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +0 -5
- package/dist/runtime/editor/features/editable-mask/index.vue +21 -20
- package/dist/runtime/editor/features/entity-title/index.vue +0 -4
- package/dist/runtime/editor/features/fragments/Dialog/index.vue +0 -4
- package/dist/runtime/editor/features/grid/index.vue +16 -15
- package/dist/runtime/editor/features/grid/types.d.ts +1 -0
- package/dist/runtime/editor/features/grid/types.js +1 -0
- package/dist/runtime/editor/features/help/Dialog/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/help/Dialog/index.vue +57 -0
- package/dist/runtime/editor/features/help/Dialog/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/help/index.vue +52 -47
- package/dist/runtime/editor/features/history/List/index.vue +2 -9
- package/dist/runtime/editor/features/history/types.d.ts +1 -0
- package/dist/runtime/editor/features/history/types.js +1 -0
- package/dist/runtime/editor/features/notifications/Item/index.d.vue.ts +4 -0
- package/dist/runtime/editor/features/notifications/Item/index.vue +96 -0
- package/dist/runtime/editor/features/notifications/Item/index.vue.d.ts +4 -0
- package/dist/runtime/editor/features/notifications/List/index.d.vue.ts +11 -0
- package/dist/runtime/editor/features/notifications/List/index.vue +126 -0
- package/dist/runtime/editor/features/notifications/List/index.vue.d.ts +11 -0
- package/dist/runtime/editor/features/notifications/docs.md +12 -0
- package/dist/runtime/editor/features/notifications/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/notifications/index.vue +123 -0
- package/dist/runtime/editor/features/notifications/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/notifications/types.d.ts +132 -0
- package/dist/runtime/editor/features/notifications/types.js +20 -0
- package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +6 -2
- package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +14 -4
- package/dist/runtime/editor/features/options/Form/Color/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +0 -1
- package/dist/runtime/editor/features/options/Form/DateTimeLocal/index.vue +0 -1
- package/dist/runtime/editor/features/options/Form/Group.vue +3 -1
- package/dist/runtime/editor/features/options/Form/Item.vue +1 -2
- package/dist/runtime/editor/features/options/Form/Number/index.vue +9 -3
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +3 -2
- package/dist/runtime/editor/features/options/Form/Range/index.vue +8 -2
- package/dist/runtime/editor/features/options/Form/Text/index.vue +6 -2
- package/dist/runtime/editor/features/options/index.vue +7 -1
- package/dist/runtime/editor/features/ownership/Banner/index.vue +3 -1
- package/dist/runtime/editor/features/ownership/types.d.ts +1 -0
- package/dist/runtime/editor/features/ownership/types.js +1 -0
- package/dist/runtime/editor/features/preview-grant/types.d.ts +1 -0
- package/dist/runtime/editor/features/preview-grant/types.js +1 -0
- package/dist/runtime/editor/features/proxy-view/index.vue +24 -21
- package/dist/runtime/editor/features/publish/Dialog/PublishOption.vue +0 -2
- package/dist/runtime/editor/features/publish/Dialog/index.vue +1 -2
- package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +0 -1
- package/dist/runtime/editor/features/revert/types.d.ts +1 -0
- package/dist/runtime/editor/features/revert/types.js +1 -0
- package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +18 -8
- package/dist/runtime/editor/features/swap/types.d.ts +1 -0
- package/dist/runtime/editor/features/swap/types.js +1 -0
- package/dist/runtime/editor/features/translations/Banner/index.vue +4 -1
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +4 -1
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +7 -2
- package/dist/runtime/editor/plugins/BlockIndicator/index.vue +0 -2
- package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +4 -36
- package/dist/runtime/editor/plugins/ItemAction/index.vue +0 -1
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.d.vue.ts +1 -1
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue.d.ts +1 -1
- package/dist/runtime/editor/plugins/Sidebar/index.d.vue.ts +2 -2
- package/dist/runtime/editor/plugins/Sidebar/index.vue +7 -50
- package/dist/runtime/editor/plugins/Sidebar/index.vue.d.ts +2 -2
- package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +8 -2
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue +122 -28
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +8 -2
- package/dist/runtime/editor/plugins/index.d.ts +1 -2
- package/dist/runtime/editor/plugins/index.js +1 -3
- package/dist/runtime/editor/providers/fieldValue.js +11 -13
- package/dist/runtime/editor/providers/plugin.d.ts +12 -0
- package/dist/runtime/editor/providers/plugin.js +9 -0
- package/dist/runtime/editor/translations/de.json +53 -19
- package/dist/runtime/editor/translations/fr.json +16 -4
- package/dist/runtime/editor/translations/gsw_CH.json +53 -19
- package/dist/runtime/editor/translations/it.json +16 -4
- package/package.json +6 -6
- package/dist/runtime/editor/plugins/ViewOption/index.d.vue.ts +0 -139
- package/dist/runtime/editor/plugins/ViewOption/index.vue +0 -99
- package/dist/runtime/editor/plugins/ViewOption/index.vue.d.ts +0 -139
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
icon
|
|
3
|
+
icon?: BlokkliIcon;
|
|
4
4
|
text: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
12
|
click: () => any;
|
|
9
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
14
|
onClick?: (() => any) | undefined;
|
|
11
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
17
|
declare const _default: typeof __VLS_export;
|
|
13
18
|
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<button class="bk-dropdown-menu-item" :disabled @click="$emit('click')">
|
|
3
|
-
<
|
|
3
|
+
<slot>
|
|
4
|
+
<Icon v-if="icon" :name="icon" />
|
|
5
|
+
</slot>
|
|
4
6
|
<span>{{ text }}</span>
|
|
5
7
|
</button>
|
|
6
8
|
</template>
|
|
@@ -8,9 +10,51 @@
|
|
|
8
10
|
<script setup>
|
|
9
11
|
import { Icon } from "#blokkli/editor/components";
|
|
10
12
|
defineProps({
|
|
11
|
-
icon: { type: null, required:
|
|
13
|
+
icon: { type: null, required: false },
|
|
12
14
|
text: { type: String, required: true },
|
|
13
15
|
disabled: { type: Boolean, required: false }
|
|
14
16
|
});
|
|
15
17
|
defineEmits(["click"]);
|
|
16
18
|
</script>
|
|
19
|
+
|
|
20
|
+
<style>/*! tailwindcss v4.2.4 | MIT License | https://tailwindcss.com */
|
|
21
|
+
.bk .bk-dropdown-menu-item {
|
|
22
|
+
display: flex;
|
|
23
|
+
width: 100%;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
padding-inline: 10px;
|
|
27
|
+
padding-block: 10px;
|
|
28
|
+
text-align: left;
|
|
29
|
+
font-size: var(--text-sm, 14px);
|
|
30
|
+
line-height: var(--bk-tw-leading, var(--text-sm--line-height, calc(1.25 / 0.875)));
|
|
31
|
+
color: rgb(var(--bk-theme-mono-700) / 1);
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
--bk-tw-border-style: none;
|
|
34
|
+
border-style: none;
|
|
35
|
+
background-color: transparent;
|
|
36
|
+
}
|
|
37
|
+
@media (hover: hover) {
|
|
38
|
+
:is(.bk .bk-dropdown-menu-item):hover {
|
|
39
|
+
background-color: rgb(var(--bk-theme-mono-100) / 1);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media (hover: hover) {
|
|
43
|
+
:is(.bk .bk-dropdown-menu-item):hover {
|
|
44
|
+
color: rgb(var(--bk-theme-mono-950) / 1);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.bk .bk-dropdown-menu-item {
|
|
48
|
+
--bk-tw-leading: 1;
|
|
49
|
+
line-height: 1;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
}
|
|
52
|
+
:is(.bk .bk-dropdown-menu-item):hover svg {
|
|
53
|
+
fill: rgb(var(--bk-theme-accent-700) / 1);
|
|
54
|
+
}
|
|
55
|
+
:is(.bk .bk-dropdown-menu-item) svg {
|
|
56
|
+
width: 18px;
|
|
57
|
+
height: 18px;
|
|
58
|
+
fill: currentcolor;
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
icon
|
|
3
|
+
icon?: BlokkliIcon;
|
|
4
4
|
text: string;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
12
|
click: () => any;
|
|
9
13
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
14
|
onClick?: (() => any) | undefined;
|
|
11
15
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
12
17
|
declare const _default: typeof __VLS_export;
|
|
13
18
|
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -28,8 +28,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
28
28
|
onSubmit?: (() => any) | undefined;
|
|
29
29
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
-
minHeight: number;
|
|
32
31
|
maxHeight: number;
|
|
32
|
+
minHeight: number;
|
|
33
33
|
onBeforePaste: (data: ClipboardData) => boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -28,8 +28,8 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
|
28
28
|
onSubmit?: (() => any) | undefined;
|
|
29
29
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
-
minHeight: number;
|
|
32
31
|
maxHeight: number;
|
|
32
|
+
minHeight: number;
|
|
33
33
|
onBeforePaste: (data: ClipboardData) => boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
:key="day.key"
|
|
38
38
|
type="button"
|
|
39
39
|
class="_bk_flex _bk_items-center _bk_justify-center _bk_py-3 _bk_disabled:cursor-not-allowed _bk_group"
|
|
40
|
-
:data-test="'datepicker-day-' + day.dateString"
|
|
41
40
|
:disabled="disabled || day.isDisabled"
|
|
42
41
|
@click="selectDate(day)"
|
|
43
42
|
>
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
ref="inputEl"
|
|
12
12
|
v-model="value"
|
|
13
13
|
type="text"
|
|
14
|
-
data-test="text-input"
|
|
15
14
|
class="_bk_h-60 _bk_appearance-none _bk_w-full _bk_bg-transparent _bk_!outline-none _bk_!ring-0 _bk_pl-50 _bk_!border-none _bk_text-lg _bk_font-bold _bk_placeholder:font-normal _bk_placeholder:text-mono-500 _bk_text-mono-100 _bk_group-focus-within:outline! _bk_group-focus-within:outline-white _bk_-outline-offset-2"
|
|
16
15
|
:placeholder
|
|
17
16
|
:class="{
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
}"
|
|
8
8
|
>
|
|
9
9
|
<slot />
|
|
10
|
-
<input
|
|
10
|
+
<input
|
|
11
|
+
v-if="!hideInput"
|
|
12
|
+
v-model="value"
|
|
13
|
+
type="checkbox"
|
|
14
|
+
class="_bk_sr-only"
|
|
15
|
+
:disabled
|
|
16
|
+
/>
|
|
11
17
|
<div
|
|
12
18
|
class="bk-checkbox-toggle-toggle _bk_group-focus-within/toggle:outline _bk_outline-accent-950/80 _bk_outline-offset-2 _bk_relative _bk_w-[36px] _bk_h-20 _bk_rounded-full _bk_shrink-0 _bk_mr-5 _bk_last:mr-0"
|
|
13
19
|
:class="{
|
|
@@ -73,7 +79,8 @@ const props = defineProps({
|
|
|
73
79
|
disabled: { type: Boolean, required: false, default: false },
|
|
74
80
|
disabledReason: { type: [String, null], required: false, default: null },
|
|
75
81
|
colorScheme: { type: String, required: false, default: "light" },
|
|
76
|
-
stretch: { type: Boolean, required: false, default: false }
|
|
82
|
+
stretch: { type: Boolean, required: false, default: false },
|
|
83
|
+
hideInput: { type: Boolean, required: false }
|
|
77
84
|
});
|
|
78
85
|
const isDark = computed(() => props.colorScheme === "dark");
|
|
79
86
|
const value = defineModel({ type: Boolean });
|
|
@@ -3,14 +3,12 @@
|
|
|
3
3
|
v-if="markup"
|
|
4
4
|
class="bk-icon"
|
|
5
5
|
:class="'bk-icon-' + name"
|
|
6
|
-
:data-test="'icon-' + name"
|
|
7
6
|
v-html="markup"
|
|
8
7
|
/>
|
|
9
8
|
<div
|
|
10
9
|
v-else
|
|
11
10
|
class="bk-icon"
|
|
12
11
|
:class="'bk-icon-missing'"
|
|
13
|
-
:data-test="'icon-' + name"
|
|
14
12
|
>
|
|
15
13
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
16
14
|
<path
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
@mouseenter="stopTimer"
|
|
6
6
|
@mouseleave="startTimer"
|
|
7
7
|
>
|
|
8
|
-
<button
|
|
8
|
+
<button
|
|
9
|
+
class="bk-message-content"
|
|
10
|
+
@click="$emit('close')"
|
|
11
|
+
>
|
|
9
12
|
<p>{{ message }}</p>
|
|
10
13
|
<p v-if="additionalText" class="bk-message-additional">
|
|
11
14
|
{{ additionalText }}
|
|
@@ -6,13 +6,11 @@
|
|
|
6
6
|
:id="'popup-' + id"
|
|
7
7
|
class="bk bk-popup"
|
|
8
8
|
:class="['bk-is-' + position, 'bk-is-' + id]"
|
|
9
|
-
:data-test-popup="id"
|
|
10
9
|
>
|
|
11
10
|
<div class="bk-popup-title">
|
|
12
11
|
<h2>{{ title }}</h2>
|
|
13
12
|
<button
|
|
14
13
|
class="_bk_p-20 _bk_hover:bg-mono-50 _bk_text-mono-500"
|
|
15
|
-
:data-test-popup-close="id"
|
|
16
14
|
@click="onClose"
|
|
17
15
|
>
|
|
18
16
|
<Icon name="bk_mdi_close" class="_bk_size-20" />
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
25
25
|
isEmpty: boolean;
|
|
26
26
|
}) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
initialValue: string;
|
|
29
28
|
autofocus: boolean;
|
|
29
|
+
initialValue: string;
|
|
30
30
|
getUsers: () => Promise<MentionItem[]>;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -25,7 +25,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
25
25
|
isEmpty: boolean;
|
|
26
26
|
}) => any) | undefined;
|
|
27
27
|
}>, {
|
|
28
|
-
initialValue: string;
|
|
29
28
|
autofocus: boolean;
|
|
29
|
+
initialValue: string;
|
|
30
30
|
getUsers: () => Promise<MentionItem[]>;
|
|
31
31
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="_bk_flex-1 _bk_flex _bk_gap-20"
|
|
2
|
+
<div class="_bk_flex-1 _bk_flex _bk_gap-20">
|
|
3
3
|
<div class="_bk_w-[300px] _bk_shrink-0">
|
|
4
4
|
<FormDatepicker
|
|
5
5
|
v-model="selectedDate"
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
id="schedule-time"
|
|
21
21
|
v-model="selectedTime"
|
|
22
22
|
type="time"
|
|
23
|
-
data-test="schedule-time"
|
|
24
23
|
class="bk-form-input _bk_flex-1 _bk_w-full _bk_tabular-nums"
|
|
25
24
|
:disabled="disabled"
|
|
26
25
|
:class="{
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
class="_bk_mt-20"
|
|
52
51
|
color="red"
|
|
53
52
|
small
|
|
54
|
-
data-test="schedule-error"
|
|
55
53
|
/>
|
|
56
54
|
<slot />
|
|
57
55
|
</div>
|
|
@@ -30,8 +30,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
30
30
|
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
placeholder: string;
|
|
33
|
-
visibleItems: number;
|
|
34
33
|
itemHeight: number;
|
|
34
|
+
visibleItems: number;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -30,8 +30,8 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
30
30
|
"onUpdate:text"?: ((value: string) => any) | undefined;
|
|
31
31
|
}>, {
|
|
32
32
|
placeholder: string;
|
|
33
|
-
visibleItems: number;
|
|
34
33
|
itemHeight: number;
|
|
34
|
+
visibleItems: number;
|
|
35
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
37
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<any, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
ref="buttonEl"
|
|
4
|
+
class="_bk_flex _bk_gap-8 _bk_whitespace-nowrap _bk_w-full _bk_px-10 _bk_text-mono-800 _bk_items-center _bk_hover:bg-mono-100 _bk_min-h-50 _bk_group/tooltip _bk_relative _bk_border-b _bk_border-b-mono-200 _bk_last:border-b-0 _bk_group/toggle"
|
|
5
|
+
:class="{ 'bk-is-inactive': !isActive }"
|
|
6
|
+
@click.prevent.stop="toggle"
|
|
7
|
+
>
|
|
8
|
+
<Icon v-if="icon" :name="icon" class="_bk_size-20" />
|
|
9
|
+
<div class="_bk_font-medium _bk_text-base">
|
|
10
|
+
{{ label }}
|
|
11
|
+
</div>
|
|
12
|
+
<div class="_bk_ml-auto">
|
|
13
|
+
<FormToggle :model-value="isActive" />
|
|
14
|
+
</div>
|
|
15
|
+
<Tooltip :label="description" placement="center-before">
|
|
16
|
+
<template v-if="keyCode" #shortcut>
|
|
17
|
+
<ShortcutIndicator meta :key-code :label group="ui" @pressed="toggle" />
|
|
18
|
+
</template>
|
|
19
|
+
</Tooltip>
|
|
20
|
+
</button>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script setup>
|
|
24
|
+
import { useBlokkli, useTemplateRef, watch } from "#imports";
|
|
25
|
+
import {
|
|
26
|
+
Icon,
|
|
27
|
+
ShortcutIndicator,
|
|
28
|
+
Tooltip,
|
|
29
|
+
FormToggle
|
|
30
|
+
} from "#blokkli/editor/components";
|
|
31
|
+
import { defineCommands, defineTourItem } from "#blokkli/editor/composables";
|
|
32
|
+
const props = defineProps({
|
|
33
|
+
id: { type: String, required: true },
|
|
34
|
+
label: { type: String, required: true },
|
|
35
|
+
description: { type: String, required: true },
|
|
36
|
+
icon: { type: null, required: true },
|
|
37
|
+
keyCode: { type: String, required: false },
|
|
38
|
+
tourText: { type: String, required: false },
|
|
39
|
+
weight: { type: Number, required: false }
|
|
40
|
+
});
|
|
41
|
+
const { storage, eventBus, $t } = useBlokkli();
|
|
42
|
+
const buttonEl = useTemplateRef("buttonEl");
|
|
43
|
+
const isActive = storage.use("view_option_" + props.id, false, true);
|
|
44
|
+
function toggle() {
|
|
45
|
+
isActive.value = !isActive.value;
|
|
46
|
+
}
|
|
47
|
+
watch(isActive, () => {
|
|
48
|
+
eventBus.emit("view-option:toggle", { id: props.id });
|
|
49
|
+
});
|
|
50
|
+
defineCommands(() => ({
|
|
51
|
+
id: "plugin:view_option:" + props.id,
|
|
52
|
+
label: (isActive.value ? $t("viewOptionDisable", 'Disable "@option"') : $t("viewOptionEnable", 'Enable "@option"')).replace("@option", props.label),
|
|
53
|
+
icon: props.icon,
|
|
54
|
+
group: "ui",
|
|
55
|
+
callback: toggle
|
|
56
|
+
}));
|
|
57
|
+
defineTourItem(() => {
|
|
58
|
+
if (!props.tourText) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
id: "plugin:view_option:" + props.id,
|
|
63
|
+
title: props.label,
|
|
64
|
+
text: props.tourText,
|
|
65
|
+
element: () => buttonEl.value
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
</script>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
export default {
|
|
72
|
+
name: "ToolbarViewOptionsButton"
|
|
73
|
+
};
|
|
74
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<any, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, any, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewOption } from '#blokkli/editor/providers/plugin';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: ViewOption[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<ViewOptionButton
|
|
4
|
+
v-for="option in options"
|
|
5
|
+
:key="option.id"
|
|
6
|
+
v-bind="option"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup>
|
|
12
|
+
import ViewOptionButton from "./Button/index.vue";
|
|
13
|
+
defineProps({
|
|
14
|
+
options: { type: Array, required: true }
|
|
15
|
+
});
|
|
16
|
+
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ViewOption } from '#blokkli/editor/providers/plugin';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: ViewOption[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
id="bk-toolbar-view-options"
|
|
4
|
+
class="_bk_relative _bk_group _bk_border-l _bk_border-l-mono-600"
|
|
5
|
+
>
|
|
6
|
+
<button
|
|
7
|
+
ref="toggleElement"
|
|
8
|
+
class="bk-toolbar-button bk-has-dropdown-bottom _bk_group/tooltip"
|
|
9
|
+
:class="{
|
|
10
|
+
'bk-is-active': isVisible
|
|
11
|
+
}"
|
|
12
|
+
@click.prevent="isVisible = !isVisible"
|
|
13
|
+
>
|
|
14
|
+
<Icon name="bk_mdi_eye_tracking" />
|
|
15
|
+
<Tooltip
|
|
16
|
+
:label="$t('viewOptions', 'View options')"
|
|
17
|
+
placement="below-right"
|
|
18
|
+
/>
|
|
19
|
+
</button>
|
|
20
|
+
<BlokkliTransition name="context-menu">
|
|
21
|
+
<ToolbarDropdown
|
|
22
|
+
v-if="isVisible"
|
|
23
|
+
:toggle-element
|
|
24
|
+
:title="$t('viewOptions', 'View options')"
|
|
25
|
+
class="_bk_origin-top-right"
|
|
26
|
+
@close="isVisible = false"
|
|
27
|
+
>
|
|
28
|
+
<ViewOptionsList :options />
|
|
29
|
+
</ToolbarDropdown>
|
|
30
|
+
</BlokkliTransition>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script setup>
|
|
35
|
+
import { computed, ref, useBlokkli, useTemplateRef } from "#imports";
|
|
36
|
+
import ViewOptionsList from "./List/index.vue";
|
|
37
|
+
import {
|
|
38
|
+
Icon,
|
|
39
|
+
ToolbarDropdown,
|
|
40
|
+
Tooltip,
|
|
41
|
+
BlokkliTransition
|
|
42
|
+
} from "#blokkli/editor/components";
|
|
43
|
+
const { plugins, $t } = useBlokkli();
|
|
44
|
+
const isVisible = ref(false);
|
|
45
|
+
const toggleElement = useTemplateRef("toggleElement");
|
|
46
|
+
const options = computed(
|
|
47
|
+
() => [...plugins.get("viewOption")].sort(
|
|
48
|
+
(a, b) => (a.weight ?? 0) - (b.weight ?? 0)
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<script>
|
|
54
|
+
export default {
|
|
55
|
+
name: "ToolbarViewOptions"
|
|
56
|
+
};
|
|
57
|
+
</script>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: typeof __VLS_export;
|
|
2
|
+
export default _default;
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
<div class="bk bk-toolbar-menu">
|
|
54
54
|
<button
|
|
55
55
|
class="bk-toolbar-menu-button"
|
|
56
|
-
data-test="app-menu-toggle"
|
|
57
56
|
@click.prevent.stop="openMenu"
|
|
58
57
|
>
|
|
59
58
|
<Icon name="bk_mdi_menu" />
|
|
@@ -69,8 +68,8 @@
|
|
|
69
68
|
<div id="bk-toolbar-before-title" class="bk-toolbar-container" />
|
|
70
69
|
<div id="bk-toolbar-title" class="bk-toolbar-container" />
|
|
71
70
|
<div id="bk-toolbar-after-title" class="bk-toolbar-container" />
|
|
72
|
-
<
|
|
73
|
-
<div id="bk-toolbar-artboard" class="bk-toolbar-container" />
|
|
71
|
+
<ViewOptions />
|
|
72
|
+
<div id="bk-toolbar-artboard" class="bk-toolbar-container _bk_group" />
|
|
74
73
|
<div
|
|
75
74
|
id="bk-toolbar-before-sidebar"
|
|
76
75
|
class="bk-sidebar-container-tabs bk-toolbar-container"
|
|
@@ -113,6 +112,7 @@ import {
|
|
|
113
112
|
useTemplateRef
|
|
114
113
|
} from "#imports";
|
|
115
114
|
import AppMenu from "./../AppMenu/index.vue";
|
|
115
|
+
import ViewOptions from "./ViewOptions/index.vue";
|
|
116
116
|
import { onBlokkliEvent } from "#blokkli/editor/composables";
|
|
117
117
|
const { ui, selection, storage } = useBlokkli();
|
|
118
118
|
const isApproving = computed(() => ui.isApproving.value);
|
|
@@ -285,14 +285,6 @@ export default {
|
|
|
285
285
|
display: flex;
|
|
286
286
|
height: 100%;
|
|
287
287
|
}
|
|
288
|
-
#bk-toolbar-view-options:is(.bk .bk-toolbar-container) {
|
|
289
|
-
display: none;
|
|
290
|
-
}
|
|
291
|
-
@media (width >= 64rem) {
|
|
292
|
-
#bk-toolbar-view-options:is(.bk .bk-toolbar-container) {
|
|
293
|
-
display: flex;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
288
|
#bk-toolbar-title:is(.bk .bk-toolbar-container) {
|
|
297
289
|
flex: 1;
|
|
298
290
|
font-size: var(--text-xs, 12px);
|
|
@@ -369,49 +361,4 @@ export default {
|
|
|
369
361
|
:is(:is(#bk-toolbar-title:is(.bk .bk-toolbar-container) .bk-toolbar-title-scheduled) .bk-icon) svg {
|
|
370
362
|
fill: currentcolor;
|
|
371
363
|
}
|
|
372
|
-
.bk .bk-toolbar-button {
|
|
373
|
-
display: flex;
|
|
374
|
-
height: 40px;
|
|
375
|
-
min-width: 50px;
|
|
376
|
-
align-items: center;
|
|
377
|
-
justify-content: center;
|
|
378
|
-
gap: 5px;
|
|
379
|
-
padding-inline: 10px;
|
|
380
|
-
color: rgb(var(--bk-theme-mono-200) / 1);
|
|
381
|
-
}
|
|
382
|
-
@media (width >= 64rem) {
|
|
383
|
-
.bk .bk-toolbar-button {
|
|
384
|
-
height: 50px;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
@media (width >= 64rem) {
|
|
388
|
-
@media (hover: hover) {
|
|
389
|
-
:is(.bk .bk-toolbar-button):not(.bk-is-active):hover {
|
|
390
|
-
background-color: rgb(var(--bk-theme-mono-700) / 1);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
.bk-is-active:is(.bk .bk-toolbar-button) {
|
|
395
|
-
background-color: rgb(var(--bk-theme-mono-800) / 1);
|
|
396
|
-
}
|
|
397
|
-
.bk-is-inactive:is(.bk .bk-toolbar-button) {
|
|
398
|
-
color: rgb(var(--bk-theme-mono-600) / 1);
|
|
399
|
-
}
|
|
400
|
-
[disabled]:is(.bk .bk-toolbar-button) {
|
|
401
|
-
pointer-events: none;
|
|
402
|
-
color: rgb(var(--bk-theme-mono-700) / 1);
|
|
403
|
-
}
|
|
404
|
-
:is(.bk .bk-toolbar-button) svg {
|
|
405
|
-
width: 18px;
|
|
406
|
-
height: 18px;
|
|
407
|
-
}
|
|
408
|
-
@media (width >= 64rem) {
|
|
409
|
-
:is(.bk .bk-toolbar-button) svg {
|
|
410
|
-
width: 20px;
|
|
411
|
-
height: 20px;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
:is(.bk .bk-toolbar-button) .bk-icon svg {
|
|
415
|
-
fill: currentcolor;
|
|
416
|
-
}
|
|
417
364
|
</style>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
toggleElement: HTMLElement | null;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_6: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_6) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
close: () => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onClose?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|