@blokkli/editor 2.0.0-alpha.52 → 2.0.0-alpha.53
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/chunks/tailwindConfig.mjs +3 -3
- package/dist/global/types/blockOptions.d.ts +18 -2
- package/dist/module.d.mts +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +281 -18
- package/dist/modules/agent/index.d.mts +1 -1
- package/dist/modules/agent/runtime/app/composables/agentProvider.d.ts +1 -0
- package/dist/modules/agent/runtime/app/composables/agentProvider.js +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.d.vue.ts +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue +14 -49
- package/dist/modules/agent/runtime/app/features/agent/Panel/DropHandler/index.vue.d.ts +2 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.d.vue.ts +10 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue +102 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Feedback/index.vue.d.ts +10 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/Input/Actions/index.vue +8 -5
- package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.d.vue.ts +3 -3
- package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue +9 -5
- package/dist/modules/agent/runtime/app/features/agent/Panel/ToolCard/index.vue.d.ts +3 -3
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.d.vue.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue +16 -2
- package/dist/modules/agent/runtime/app/features/agent/Panel/index.vue.d.ts +7 -0
- package/dist/modules/agent/runtime/app/features/agent/index.vue +29 -0
- package/dist/modules/agent/runtime/app/features/agent/types.d.ts +16 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/Component.vue +3 -1
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.d.ts +2 -0
- package/dist/modules/agent/runtime/app/tools/delegate_text_rewrite/index.js +8 -1
- package/dist/modules/charts/index.d.mts +1 -1
- package/dist/modules/charts/index.mjs +2 -3
- package/dist/modules/charts/runtime/features/charts/Editor/ChartTypePicker/index.vue +1 -1
- package/dist/modules/charts/runtime/features/charts/Editor/ColorDropdown/index.vue +1 -1
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +16 -0
- package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +9 -0
- package/dist/modules/drupal/graphql/features/agent.graphql +20 -0
- package/dist/modules/drupal/graphql/features/publishNew.graphql +14 -0
- package/dist/modules/drupal/graphql/features/referenced-entities.graphql +21 -0
- package/dist/modules/drupal/graphql/features/textFieldValues.graphql +20 -0
- package/dist/modules/drupal/graphql/features/workspace.graphql +23 -0
- package/dist/modules/drupal/graphql/mutations/bulk_translate_field_values.graphql +19 -0
- package/dist/modules/drupal/graphql/mutations/clear_outdated_translation.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/ignore_analyze.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/request_translation.graphql +10 -0
- package/dist/modules/drupal/graphql/mutations/unignore_analyze.graphql +15 -0
- package/dist/modules/drupal/index.d.mts +1 -1
- package/dist/modules/drupal/index.mjs +16 -0
- package/dist/modules/drupal/runtime/adapter/index.js +180 -11
- package/dist/modules/iframes/index.d.mts +31 -0
- package/dist/modules/iframes/index.mjs +52 -0
- package/dist/modules/iframes/runtime/components/BlokkliIframe/index.d.vue.ts +18 -0
- package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue +61 -0
- package/dist/modules/iframes/runtime/components/BlokkliIframe/index.vue.d.ts +18 -0
- package/dist/modules/iframes/runtime/components/index.d.ts +1 -0
- package/dist/modules/iframes/runtime/components/index.js +1 -0
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.d.vue.ts +12 -0
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue +220 -0
- package/dist/modules/iframes/runtime/features/iframes/Editor/index.vue.d.ts +12 -0
- package/dist/modules/iframes/runtime/types.d.ts +10 -0
- package/dist/modules/index.d.mts +1 -1
- package/dist/modules/table-of-contents/index.d.mts +1 -1
- package/dist/runtime/components/Blocks/NotImplemented/index.vue +57 -0
- package/dist/runtime/components/BlokkliEditable.vue +1 -1
- package/dist/runtime/editor/adapter/index.d.ts +8 -1
- package/dist/runtime/editor/components/Actions/Interactions/index.vue +77 -17
- package/dist/runtime/editor/components/Actions/{ItemDropdown.vue → ItemDropdown/index.vue} +9 -10
- package/dist/runtime/editor/components/Actions/index.vue +586 -23
- package/dist/runtime/editor/components/AnimationCanvas/index.vue +1 -0
- package/dist/runtime/editor/components/AppMenu/MenuButton.vue +185 -1
- package/dist/runtime/editor/components/AppMenu/index.vue +24 -10
- package/dist/runtime/editor/components/ArtboardTooltip/index.d.vue.ts +6 -2
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue +223 -3
- package/dist/runtime/editor/components/ArtboardTooltip/index.vue.d.ts +6 -2
- package/dist/runtime/editor/components/AutoHeight/index.vue +23 -0
- package/dist/runtime/editor/components/Banner/Inner.d.vue.ts +30 -0
- package/dist/runtime/editor/components/Banner/Inner.vue +32 -0
- package/dist/runtime/editor/components/Banner/Inner.vue.d.ts +30 -0
- package/dist/runtime/editor/components/Banner/index.d.vue.ts +3 -13
- package/dist/runtime/editor/components/Banner/index.vue +2 -14
- package/dist/runtime/editor/components/Banner/index.vue.d.ts +3 -13
- package/dist/runtime/editor/components/BetaIndicator/index.d.vue.ts +6 -0
- package/dist/runtime/editor/components/BetaIndicator/index.vue +16 -0
- package/dist/runtime/editor/components/BetaIndicator/index.vue.d.ts +6 -0
- package/dist/runtime/editor/components/BlockPreviewItem/index.vue +51 -1
- package/dist/runtime/editor/components/BlockPreviewRenderer/index.vue +27 -1
- package/dist/runtime/editor/components/BlockProxy/index.vue +148 -1
- package/dist/runtime/editor/components/BlokkliRootErrorBoundary.vue +59 -0
- package/dist/runtime/editor/components/BundleSelector/index.vue +170 -20
- package/dist/runtime/editor/components/Dialog/index.d.vue.ts +2 -0
- package/dist/runtime/editor/components/Dialog/index.vue +341 -0
- package/dist/runtime/editor/components/Dialog/index.vue.d.ts +2 -0
- package/dist/runtime/editor/components/DiffApproval/Highlight/index.vue +117 -0
- package/dist/runtime/editor/components/DiffApproval/Toolbar/index.vue +224 -28
- package/dist/runtime/editor/components/DiffViewer/DiffValue.d.vue.ts +1 -0
- package/dist/runtime/editor/components/DiffViewer/DiffValue.vue +5 -1
- package/dist/runtime/editor/components/DiffViewer/DiffValue.vue.d.ts +1 -0
- package/dist/runtime/editor/components/DiffViewer/State.vue +319 -0
- package/dist/runtime/editor/components/DraggableList.vue +103 -0
- package/dist/runtime/editor/components/Dropdown/index.vue +84 -0
- package/dist/runtime/editor/components/EditProvider.vue +72 -15
- package/dist/runtime/editor/components/FileDropHandler/index.d.vue.ts +23 -0
- package/dist/runtime/editor/components/FileDropHandler/index.vue +108 -0
- package/dist/runtime/editor/components/FileDropHandler/index.vue.d.ts +23 -0
- package/dist/runtime/editor/components/FlexTextarea/index.vue +4 -2
- package/dist/runtime/editor/components/Form/Datepicker/index.vue +149 -0
- package/dist/runtime/editor/components/Form/Toggle/index.vue +205 -1
- package/dist/runtime/editor/components/FormOverlay/index.vue +90 -0
- package/dist/runtime/editor/components/Icon/index.vue +6 -0
- package/dist/runtime/editor/components/Indicators/index.vue +161 -0
- package/dist/runtime/editor/components/InfoBox/index.vue +65 -0
- package/dist/runtime/editor/components/Konami/index.vue +119 -0
- package/dist/runtime/editor/components/Loading/index.d.vue.ts +6 -3
- package/dist/runtime/editor/components/Loading/index.vue +10 -5
- package/dist/runtime/editor/components/Loading/index.vue.d.ts +6 -3
- package/dist/runtime/editor/components/Messages/index.vue +131 -0
- package/dist/runtime/editor/components/NestedEditorOverlay/index.d.vue.ts +1 -0
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue +246 -12
- package/dist/runtime/editor/components/NestedEditorOverlay/index.vue.d.ts +1 -0
- package/dist/runtime/editor/components/NotEditStateInfo/index.d.vue.ts +3 -0
- package/dist/runtime/editor/components/NotEditStateInfo/index.vue +19 -0
- package/dist/runtime/editor/components/NotEditStateInfo/index.vue.d.ts +3 -0
- package/dist/runtime/editor/components/Overlay/index.vue +84 -0
- package/dist/runtime/editor/components/Pagination/index.vue +41 -0
- package/dist/runtime/editor/components/PluginConfigForm/index.vue +23 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/FilterSelect/index.vue +429 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/index.d.vue.ts +22 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/index.vue +150 -0
- package/dist/runtime/editor/components/PluginConfigFormInline/index.vue.d.ts +22 -0
- package/dist/runtime/editor/components/Popup/index.vue +77 -2
- package/dist/runtime/editor/components/PreviewProvider.vue +7 -0
- package/dist/runtime/editor/components/Resizable/index.vue +90 -1
- package/dist/runtime/editor/components/ScaleToFit/index.vue +30 -1
- package/dist/runtime/editor/components/SearchOverlay/index.d.vue.ts +43 -0
- package/dist/runtime/editor/components/SearchOverlay/index.vue +264 -0
- package/dist/runtime/editor/components/SearchOverlay/index.vue.d.ts +43 -0
- package/dist/runtime/editor/components/StatusIcon/index.vue +104 -0
- package/dist/runtime/editor/components/StatusIndicator/index.d.vue.ts +9 -0
- package/dist/runtime/editor/components/StatusIndicator/index.vue +16 -0
- package/dist/runtime/editor/components/StatusIndicator/index.vue.d.ts +9 -0
- package/dist/runtime/editor/components/SystemRequirements/index.vue +57 -0
- package/dist/runtime/editor/components/Tabs/index.d.vue.ts +30 -0
- package/dist/runtime/editor/components/Tabs/index.vue +32 -0
- package/dist/runtime/editor/components/Tabs/index.vue.d.ts +30 -0
- package/dist/runtime/editor/components/Toolbar/index.vue +214 -3
- package/dist/runtime/editor/components/Tooltip/Context.d.vue.ts +7 -0
- package/dist/runtime/editor/components/Tooltip/Context.vue +13 -0
- package/dist/runtime/editor/components/Tooltip/Context.vue.d.ts +7 -0
- package/dist/runtime/editor/components/Tooltip/Status.d.vue.ts +8 -0
- package/dist/runtime/editor/components/Tooltip/Status.vue +27 -0
- package/dist/runtime/editor/components/Tooltip/Status.vue.d.ts +8 -0
- package/dist/runtime/editor/components/Tooltip/index.d.vue.ts +27 -0
- package/dist/runtime/editor/components/Tooltip/index.vue +40 -0
- package/dist/runtime/editor/components/Tooltip/index.vue.d.ts +27 -0
- package/dist/runtime/editor/components/index.d.ts +59 -49
- package/dist/runtime/editor/components/index.js +59 -98
- package/dist/runtime/editor/composables/defineHighlight.d.ts +2 -0
- package/dist/runtime/editor/composables/defineHighlight.js +10 -0
- package/dist/runtime/editor/composables/index.d.ts +1 -0
- package/dist/runtime/editor/composables/index.js +1 -0
- package/dist/runtime/editor/composables/useBlockRegistration.js +8 -0
- package/dist/runtime/editor/composables/useStickyToolbar.d.ts +1 -0
- package/dist/runtime/editor/composables/useStickyToolbar.js +16 -0
- package/dist/runtime/editor/css/output.css +1 -1
- package/dist/runtime/editor/events/index.d.ts +10 -0
- package/dist/runtime/editor/features/add-list/Help/index.vue +193 -0
- package/dist/runtime/editor/features/add-list/index.vue +441 -0
- package/dist/runtime/editor/features/analyze/Ignored/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/analyze/Ignored/index.vue +35 -0
- package/dist/runtime/editor/features/analyze/Ignored/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/analyze/Main.vue +148 -24
- package/dist/runtime/editor/features/analyze/Results/Results.d.vue.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/Results.vue +0 -2
- package/dist/runtime/editor/features/analyze/Results/Results.vue.d.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.d.vue.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue +1 -2
- package/dist/runtime/editor/features/analyze/Results/ResultsItem.vue.d.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.d.vue.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue +11 -8
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodes.vue.d.ts +1 -9
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.d.vue.ts +3 -10
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue +63 -25
- package/dist/runtime/editor/features/analyze/Results/ResultsItemNodesTarget.vue.d.ts +3 -10
- package/dist/runtime/editor/features/analyze/analyzers/altText.js +2 -0
- package/dist/runtime/editor/features/analyze/analyzers/headingStructure.js +3 -0
- package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.d.ts +7 -0
- package/dist/runtime/editor/features/analyze/analyzers/helpers/hashString.js +8 -0
- package/dist/runtime/editor/features/analyze/analyzers/readability.js +6 -12
- package/dist/runtime/editor/features/analyze/analyzers/types.d.ts +20 -0
- package/dist/runtime/editor/features/analyze/index.vue +458 -0
- package/dist/runtime/editor/features/analyze/types.d.ts +12 -0
- package/dist/runtime/editor/features/artboard/Overview/index.vue +37 -4
- package/dist/runtime/editor/features/artboard/Renderer.vue +79 -9
- package/dist/runtime/editor/features/artboard/Scrollbar/index.vue +84 -0
- package/dist/runtime/editor/features/block-scheduler/Dialog/index.vue +1 -1
- package/dist/runtime/editor/features/block-scheduler/index.vue +114 -0
- package/dist/runtime/editor/features/breadcrumbs/index.vue +150 -0
- package/dist/runtime/editor/features/changelog/Dialog/index.vue +62 -7
- package/dist/runtime/editor/features/changelog/changelog.json +9 -1
- package/dist/runtime/editor/features/clipboard/index.vue +153 -1
- package/dist/runtime/editor/features/command-palette/Palette/Item/index.vue +39 -16
- package/dist/runtime/editor/features/command-palette/Palette/index.vue +24 -130
- package/dist/runtime/editor/features/comments/index.vue +235 -0
- package/dist/runtime/editor/features/complex-options/index.vue +4 -1
- package/dist/runtime/editor/features/debug/Main.vue +1 -1
- package/dist/runtime/editor/features/debug/Section/Features.vue +2 -4
- package/dist/runtime/editor/features/debug/index.vue +168 -0
- package/dist/runtime/editor/features/dev-mode/index.vue +92 -27
- package/dist/runtime/editor/features/dragging-overlay/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/dragging-overlay/index.vue +330 -0
- package/dist/runtime/editor/features/edit/index.vue +15 -17
- package/dist/runtime/editor/features/edit-form/Frame/index.vue +21 -4
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.d.vue.ts +9 -1
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue +32 -3
- package/dist/runtime/editor/features/editable-field/Overlay/Frame/index.vue.d.ts +9 -1
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/ChunkOverlay.vue +77 -0
- package/dist/runtime/editor/features/editable-field/Overlay/ReadabilityIndicator/index.vue +55 -56
- package/dist/runtime/editor/features/editable-field/Overlay/index.vue +416 -8
- package/dist/runtime/editor/features/editable-mask/index.vue +9 -0
- package/dist/runtime/editor/features/entity-title/index.vue +40 -56
- package/dist/runtime/editor/features/fragments/Dialog/index.vue +90 -0
- package/dist/runtime/editor/features/help/Shortcuts/index.vue +71 -0
- package/dist/runtime/editor/features/help/index.vue +17 -0
- package/dist/runtime/editor/features/highlights/Renderer/fragment.glsl +89 -0
- package/dist/runtime/editor/features/highlights/Renderer/index.vue +408 -0
- package/dist/runtime/editor/features/highlights/Renderer/vertex.glsl +87 -0
- package/dist/runtime/editor/features/highlights/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/highlights/index.vue +20 -0
- package/dist/runtime/editor/features/highlights/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/history/List/index.vue +209 -0
- package/dist/runtime/editor/features/history/index.vue +0 -1
- package/dist/runtime/editor/features/hover/Renderer/index.vue +1 -1
- package/dist/runtime/editor/features/hover/Renderer/vertex.glsl +1 -1
- package/dist/runtime/editor/features/import-existing/Dialog/index.vue +18 -0
- package/dist/runtime/editor/features/media-library/Library/index.vue +10 -30
- package/dist/runtime/editor/features/media-library/index.vue +331 -0
- package/dist/runtime/editor/features/options/Form/Checkbox/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/Checkboxes/index.vue +1 -1
- package/dist/runtime/editor/features/options/Form/ComplexType/index.vue +6 -2
- package/dist/runtime/editor/features/options/Form/Item.vue +21 -18
- package/dist/runtime/editor/features/options/Form/Radios/index.d.vue.ts +6 -0
- package/dist/runtime/editor/features/options/Form/Radios/index.vue +25 -6
- package/dist/runtime/editor/features/options/Form/Radios/index.vue.d.ts +6 -0
- package/dist/runtime/editor/features/options/Form/index.vue +1 -4
- package/dist/runtime/editor/features/options/index.vue +729 -0
- package/dist/runtime/editor/features/ownership/Banner/index.vue +9 -8
- package/dist/runtime/editor/features/ownership/index.vue +1 -1
- package/dist/runtime/editor/features/preview-grant/QrCode/index.vue +8 -3
- package/dist/runtime/editor/features/publish/Dialog/Item.vue +18 -20
- package/dist/runtime/editor/features/publish/Dialog/index.vue +5 -1
- package/dist/runtime/editor/features/publish/index.vue +835 -0
- package/dist/runtime/editor/features/publish/types.d.ts +5 -1
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.d.vue.ts +4 -0
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue +81 -0
- package/dist/runtime/editor/features/referenced-entities/List/Item/index.vue.d.ts +4 -0
- package/dist/runtime/editor/features/referenced-entities/List/index.d.vue.ts +11 -0
- package/dist/runtime/editor/features/referenced-entities/List/index.vue +78 -0
- package/dist/runtime/editor/features/referenced-entities/List/index.vue.d.ts +11 -0
- package/dist/runtime/editor/features/referenced-entities/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/referenced-entities/index.vue +36 -0
- package/dist/runtime/editor/features/referenced-entities/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/referenced-entities/types.d.ts +13 -0
- package/dist/runtime/editor/features/responsive-preview/Frame/index.vue +188 -0
- package/dist/runtime/editor/features/search/Overlay/Results/Page/index.vue +1 -1
- package/dist/runtime/editor/features/search/index.vue +511 -0
- package/dist/runtime/editor/features/selection/AddButtons/Renderer/index.vue +58 -0
- package/dist/runtime/editor/features/selection/index.vue +47 -15
- package/dist/runtime/editor/features/settings/Dialog/FeatureSetting/index.vue +23 -0
- package/dist/runtime/editor/features/settings/Dialog/index.vue +5 -2
- package/dist/runtime/editor/features/settings/index.vue +152 -0
- package/dist/runtime/editor/features/structure/List/Item/index.vue +7 -0
- package/dist/runtime/editor/features/structure/index.vue +178 -0
- package/dist/runtime/editor/features/templates/ManageDialog/Item.vue +3 -3
- package/dist/runtime/editor/features/templates/ManageDialog/index.vue +24 -3
- package/dist/runtime/editor/features/theme/index.vue +94 -0
- package/dist/runtime/editor/features/touch-action-bar/Bar/index.vue +34 -0
- package/dist/runtime/editor/features/tour/Overlay/index.vue +243 -13
- package/dist/runtime/editor/features/transform/Dialog/index.vue +132 -1
- package/dist/runtime/editor/features/translations/Banner/index.d.vue.ts +14 -1
- package/dist/runtime/editor/features/translations/Banner/index.vue +139 -12
- package/dist/runtime/editor/features/translations/Banner/index.vue.d.ts +14 -1
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue +272 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Export/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.d.vue.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue +382 -0
- package/dist/runtime/editor/features/translations/CsvDialog/Import/index.vue.d.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/csv.d.ts +22 -0
- package/dist/runtime/editor/features/translations/CsvDialog/csv.js +50 -0
- package/dist/runtime/editor/features/translations/CsvDialog/index.d.vue.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/index.vue +37 -0
- package/dist/runtime/editor/features/translations/CsvDialog/index.vue.d.ts +10 -0
- package/dist/runtime/editor/features/translations/CsvDialog/po.d.ts +7 -0
- package/dist/runtime/editor/features/translations/CsvDialog/po.js +36 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.d.vue.ts +37 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue +102 -0
- package/dist/runtime/editor/features/translations/SelectionTable/index.vue.d.ts +37 -0
- package/dist/runtime/editor/features/translations/TranslateDialog/index.d.vue.ts +7 -0
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue +294 -0
- package/dist/runtime/editor/features/translations/TranslateDialog/index.vue.d.ts +7 -0
- package/dist/runtime/editor/features/translations/index.vue +276 -6
- package/dist/runtime/editor/features/translations/types.d.ts +47 -0
- package/dist/runtime/editor/features/validations/Overlay/index.vue +130 -0
- package/dist/runtime/editor/features/validations/index.vue +41 -0
- package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.d.vue.ts +2 -4
- package/dist/runtime/editor/features/workspace/Overlay/index.vue +177 -0
- package/dist/runtime/editor/features/{assistant → workspace}/Overlay/index.vue.d.ts +2 -4
- package/dist/runtime/editor/features/workspace/index.d.vue.ts +3 -0
- package/dist/runtime/editor/features/workspace/index.vue +46 -0
- package/dist/runtime/editor/features/workspace/index.vue.d.ts +3 -0
- package/dist/runtime/editor/features/workspace/types.d.ts +59 -0
- package/dist/runtime/editor/features/workspace/types.js +0 -0
- package/dist/runtime/editor/icons/svg/spinner.svg +2 -2
- package/dist/runtime/editor/plugins/ContextMenu/Menu/index.vue +21 -7
- package/dist/runtime/editor/plugins/ContextMenu/index.vue +4 -0
- package/dist/runtime/editor/plugins/ItemAction/index.d.vue.ts +9 -2
- package/dist/runtime/editor/plugins/ItemAction/index.vue +26 -16
- package/dist/runtime/editor/plugins/ItemAction/index.vue.d.ts +9 -2
- package/dist/runtime/editor/plugins/Sidebar/Detached/index.vue +24 -26
- package/dist/runtime/editor/plugins/Sidebar/index.vue +612 -27
- package/dist/runtime/editor/plugins/ToolbarButton/index.d.vue.ts +13 -84
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue +36 -22
- package/dist/runtime/editor/plugins/ToolbarButton/index.vue.d.ts +13 -84
- package/dist/runtime/editor/plugins/ViewOption/index.vue +13 -14
- package/dist/runtime/editor/providers/blocks.js +1 -0
- package/dist/runtime/editor/providers/cache.d.ts +23 -0
- package/dist/runtime/editor/providers/cache.js +29 -0
- package/dist/runtime/editor/providers/directive.d.ts +25 -0
- package/dist/runtime/editor/providers/directive.js +20 -0
- package/dist/runtime/editor/providers/fieldValue.d.ts +5 -5
- package/dist/runtime/editor/providers/fieldValue.js +8 -7
- package/dist/runtime/editor/providers/plugin.d.ts +14 -0
- package/dist/runtime/editor/providers/plugin.js +9 -0
- package/dist/runtime/editor/providers/readability.js +1 -1
- package/dist/runtime/editor/providers/selection.js +1 -1
- package/dist/runtime/editor/providers/state.d.ts +1 -0
- package/dist/runtime/editor/providers/state.js +1 -0
- package/dist/runtime/editor/providers/texts.js +11 -1
- package/dist/runtime/editor/providers/ui.d.ts +11 -0
- package/dist/runtime/editor/providers/ui.js +5 -1
- package/dist/runtime/editor/translations/de.json +316 -56
- package/dist/runtime/editor/translations/fr.json +310 -50
- package/dist/runtime/editor/translations/gsw_CH.json +311 -51
- package/dist/runtime/editor/translations/it.json +310 -50
- package/dist/runtime/editor/types/app.d.ts +2 -0
- package/dist/runtime/editor/types/definitions.d.ts +8 -0
- package/dist/runtime/editor/types/field.d.ts +1 -0
- package/dist/runtime/editor/types/state.d.ts +10 -0
- package/dist/runtime/editor/types/ui.d.ts +3 -1
- package/dist/runtime/helpers/tw.d.ts +15 -0
- package/dist/runtime/helpers/tw.js +3 -0
- package/dist/runtime/types/field.d.ts +1 -0
- package/dist/shared/{editor.DsGJIlGn.d.mts → editor.BTOBvmaz.d.mts} +20 -3
- package/dist/types.d.mts +1 -1
- package/package.json +16 -3
- package/dist/runtime/editor/features/analyze/Renderer/fragment.glsl +0 -74
- package/dist/runtime/editor/features/analyze/Renderer/index.d.vue.ts +0 -24
- package/dist/runtime/editor/features/analyze/Renderer/index.vue +0 -330
- package/dist/runtime/editor/features/analyze/Renderer/index.vue.d.ts +0 -24
- package/dist/runtime/editor/features/analyze/Renderer/vertex.glsl +0 -94
- package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.d.vue.ts +0 -7
- package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue +0 -17
- package/dist/runtime/editor/features/assistant/Overlay/ResultMarkup/index.vue.d.ts +0 -7
- package/dist/runtime/editor/features/assistant/Overlay/index.vue +0 -108
- package/dist/runtime/editor/features/assistant/docs.md +0 -7
- package/dist/runtime/editor/features/assistant/index.vue +0 -66
- package/dist/runtime/editor/features/assistant/types.d.ts +0 -37
- package/dist/runtime/editor/features/media-library/Library/FilterSelect/index.vue +0 -168
- package/dist/runtime/editor/providers/fieldValueAdapterTypes.d.ts +0 -13
- /package/dist/{runtime/editor/features/assistant → modules/iframes/runtime}/types.js +0 -0
- /package/dist/runtime/editor/components/Actions/{ItemDropdown.d.vue.ts → ItemDropdown/index.d.vue.ts} +0 -0
- /package/dist/runtime/editor/components/Actions/{ItemDropdown.vue.d.ts → ItemDropdown/index.vue.d.ts} +0 -0
- /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/{features/media-library/Library → components/PluginConfigFormInline}/FilterSelect/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.d.vue.ts +0 -0
- /package/dist/runtime/editor/features/{assistant → highlights/Renderer}/index.vue.d.ts +0 -0
- /package/dist/runtime/editor/{providers/fieldValueAdapterTypes.js → features/referenced-entities/types.js} +0 -0
|
@@ -22,27 +22,37 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
<div
|
|
26
|
-
|
|
25
|
+
<div
|
|
26
|
+
class="_bk_border-t _bk_h-50 _bk_absolute _bk_bottom-0 _bk_left-0 _bk_w-full _bk_bg-white _bk_border-t-yellow-dark/20 _bk_flex _bk_justify-between _bk_items-center"
|
|
27
|
+
>
|
|
28
|
+
<button class="bk-tour-button _bk_group/tooltip" @click.stop.prevent="prev">
|
|
27
29
|
<Icon name="bk_mdi_chevron_backward" />
|
|
28
30
|
<span>{{ $t("tourPrev", "Previous") }}</span>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
<Tooltip
|
|
32
|
+
:label="$t('arrowRight', 'Arrow Right')"
|
|
33
|
+
placement="below-left"
|
|
34
|
+
>
|
|
35
|
+
<template #shortcut>
|
|
36
|
+
<ShortcutIndicator label="Prev Tour Item" key-code="ArrowLeft" />
|
|
37
|
+
</template>
|
|
38
|
+
</Tooltip>
|
|
33
39
|
</button>
|
|
34
|
-
<div>
|
|
40
|
+
<div class="_bk_text-yellow-dark/80 _bk_text-sm">
|
|
35
41
|
<span>{{ activeIndex + 1 }}</span
|
|
36
42
|
> /
|
|
37
43
|
<span>{{ items.length }}</span>
|
|
38
44
|
</div>
|
|
39
|
-
<button @click.stop.prevent="next">
|
|
45
|
+
<button class="bk-tour-button _bk_group/tooltip" @click.stop.prevent="next">
|
|
40
46
|
<span>{{ $t("tourNext", "Next") }}</span>
|
|
41
47
|
<Icon name="bk_mdi_chevron_forward" />
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
48
|
+
<Tooltip
|
|
49
|
+
:label="$t('arrowLeft', 'Arrow Left')"
|
|
50
|
+
placement="below-right"
|
|
51
|
+
>
|
|
52
|
+
<template #shortcut>
|
|
53
|
+
<ShortcutIndicator label="Next Tour Item" key-code="ArrowRight" />
|
|
54
|
+
</template>
|
|
55
|
+
</Tooltip>
|
|
46
56
|
</button>
|
|
47
57
|
</div>
|
|
48
58
|
</div>
|
|
@@ -54,7 +64,7 @@
|
|
|
54
64
|
import { useBlokkli, computed, ref, useTemplateRef } from "#imports";
|
|
55
65
|
import { falsy } from "#blokkli/helpers";
|
|
56
66
|
import { modulo } from "#blokkli/editor/helpers/math";
|
|
57
|
-
import { Icon, ShortcutIndicator } from "#blokkli/editor/components";
|
|
67
|
+
import { Icon, ShortcutIndicator, Tooltip } from "#blokkli/editor/components";
|
|
58
68
|
import { onBlokkliEvent, useAnimationFrame } from "#blokkli/editor/composables";
|
|
59
69
|
const emit = defineEmits(["close"]);
|
|
60
70
|
const rectStyle = computed(() => {
|
|
@@ -216,3 +226,223 @@ useAnimationFrame(() => {
|
|
|
216
226
|
tooltipHeight.value = contentEl.value.scrollHeight + 50;
|
|
217
227
|
});
|
|
218
228
|
</script>
|
|
229
|
+
|
|
230
|
+
<style>
|
|
231
|
+
.bk.bk-tour {
|
|
232
|
+
|
|
233
|
+
position: fixed;
|
|
234
|
+
|
|
235
|
+
top: 0px;
|
|
236
|
+
|
|
237
|
+
left: 0px;
|
|
238
|
+
|
|
239
|
+
z-index: calc(var(--bk-z-index-base) + 280000) /* "tour-item" */;
|
|
240
|
+
|
|
241
|
+
border-radius: 6px;
|
|
242
|
+
|
|
243
|
+
pointer-events: auto;
|
|
244
|
+
|
|
245
|
+
--bk-tw-bg-opacity: 1;
|
|
246
|
+
|
|
247
|
+
background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1));
|
|
248
|
+
|
|
249
|
+
--bk-tw-text-opacity: 1;
|
|
250
|
+
|
|
251
|
+
color: rgb(var(--bk-theme-yellow-dark) / var(--bk-tw-text-opacity, 1));
|
|
252
|
+
|
|
253
|
+
--bk-tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
254
|
+
|
|
255
|
+
--bk-tw-shadow-colored: 0 20px 25px -5px var(--bk-tw-shadow-color), 0 8px 10px -6px var(--bk-tw-shadow-color);
|
|
256
|
+
|
|
257
|
+
box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow);
|
|
258
|
+
|
|
259
|
+
transition-property: all;
|
|
260
|
+
|
|
261
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
262
|
+
|
|
263
|
+
transition-duration: 200ms;
|
|
264
|
+
|
|
265
|
+
transition-timing-function: cubic-bezier(0.56, 0.04, 0.25, 1)
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.bk.bk-tour button:focus {
|
|
269
|
+
|
|
270
|
+
border-width: 0;
|
|
271
|
+
|
|
272
|
+
outline-width: 0px;
|
|
273
|
+
|
|
274
|
+
--bk-tw-ring-offset-shadow: var(--bk-tw-ring-inset) 0 0 0 var(--bk-tw-ring-offset-width) var(--bk-tw-ring-offset-color);
|
|
275
|
+
|
|
276
|
+
--bk-tw-ring-shadow: var(--bk-tw-ring-inset) 0 0 0 calc(0px + var(--bk-tw-ring-offset-width)) var(--bk-tw-ring-color);
|
|
277
|
+
|
|
278
|
+
box-shadow: var(--bk-tw-ring-offset-shadow), var(--bk-tw-ring-shadow), var(--bk-tw-shadow, 0 0 #0000)
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.bk .bk-tour-title {
|
|
282
|
+
|
|
283
|
+
display: flex;
|
|
284
|
+
|
|
285
|
+
align-items: center;
|
|
286
|
+
|
|
287
|
+
justify-content: space-between;
|
|
288
|
+
|
|
289
|
+
border-bottom-width: 1px;
|
|
290
|
+
|
|
291
|
+
border-bottom-color: rgb(var(--bk-theme-yellow-dark) / 0.3);
|
|
292
|
+
|
|
293
|
+
--bk-tw-bg-opacity: 1;
|
|
294
|
+
|
|
295
|
+
background-color: rgb(var(--bk-theme-yellow-normal) / var(--bk-tw-bg-opacity, 1));
|
|
296
|
+
|
|
297
|
+
padding-left: 20px;
|
|
298
|
+
|
|
299
|
+
font-size: 18px;
|
|
300
|
+
|
|
301
|
+
line-height: 28px;
|
|
302
|
+
|
|
303
|
+
font-weight: 700
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.bk .bk-tour-title button {
|
|
307
|
+
|
|
308
|
+
padding: 15px
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.bk .bk-tour-title button:hover {
|
|
312
|
+
|
|
313
|
+
background-color: rgb(var(--bk-theme-yellow-dark) / 0.1)
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.bk .bk-tour-title button svg {
|
|
317
|
+
|
|
318
|
+
fill: rgb(var(--bk-theme-yellow-dark) / 1)
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.bk .bk-tour-title svg {
|
|
322
|
+
|
|
323
|
+
height: 20px;
|
|
324
|
+
|
|
325
|
+
width: 20px
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.bk .bk-tour-content {
|
|
329
|
+
|
|
330
|
+
padding: 20px;
|
|
331
|
+
|
|
332
|
+
padding-top: 17px
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.bk .bk-tour-content > div {
|
|
336
|
+
|
|
337
|
+
position: relative;
|
|
338
|
+
|
|
339
|
+
overflow: hidden;
|
|
340
|
+
|
|
341
|
+
transition-property: all;
|
|
342
|
+
|
|
343
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
344
|
+
|
|
345
|
+
transition-duration: 150ms;
|
|
346
|
+
|
|
347
|
+
transition-timing-function: cubic-bezier(0.56, 0.04, 0.25, 1)
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.bk .bk-tour-content p:not(:last-child) {
|
|
351
|
+
|
|
352
|
+
margin-bottom: 18px
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.bk .bk-tour-content-text {
|
|
356
|
+
|
|
357
|
+
position: absolute;
|
|
358
|
+
|
|
359
|
+
top: 0px;
|
|
360
|
+
|
|
361
|
+
left: 0px;
|
|
362
|
+
|
|
363
|
+
width: 100%
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.bk .bk-tour-button {
|
|
367
|
+
|
|
368
|
+
position: relative;
|
|
369
|
+
|
|
370
|
+
display: flex;
|
|
371
|
+
|
|
372
|
+
align-items: center;
|
|
373
|
+
|
|
374
|
+
padding-top: 15px;
|
|
375
|
+
|
|
376
|
+
padding-bottom: 15px;
|
|
377
|
+
|
|
378
|
+
padding-left: 15px;
|
|
379
|
+
|
|
380
|
+
padding-right: 15px;
|
|
381
|
+
|
|
382
|
+
font-weight: 600;
|
|
383
|
+
|
|
384
|
+
line-height: 1;
|
|
385
|
+
|
|
386
|
+
--bk-tw-text-opacity: 1;
|
|
387
|
+
|
|
388
|
+
color: rgb(var(--bk-theme-yellow-dark) / var(--bk-tw-text-opacity, 1))
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.bk .bk-tour-button:hover {
|
|
392
|
+
|
|
393
|
+
background-color: rgb(var(--bk-theme-yellow-dark) / 0.05)
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.bk .bk-tour-button .bk-icon {
|
|
397
|
+
|
|
398
|
+
height: 20px;
|
|
399
|
+
|
|
400
|
+
width: 20px
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.bk .bk-tour-button .bk-icon svg {
|
|
404
|
+
|
|
405
|
+
fill: currentColor
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.bk.bk-tour-overlay-element {
|
|
409
|
+
|
|
410
|
+
pointer-events: none;
|
|
411
|
+
|
|
412
|
+
position: fixed;
|
|
413
|
+
|
|
414
|
+
top: 0px;
|
|
415
|
+
|
|
416
|
+
left: 0px;
|
|
417
|
+
|
|
418
|
+
z-index: calc(var(--bk-z-index-base) + 270000) /* "tour-overlay" */;
|
|
419
|
+
|
|
420
|
+
height: 100%;
|
|
421
|
+
|
|
422
|
+
width: 100%;
|
|
423
|
+
|
|
424
|
+
border-width: 3px;
|
|
425
|
+
|
|
426
|
+
--bk-tw-border-opacity: 1;
|
|
427
|
+
|
|
428
|
+
border-color: rgb(var(--bk-theme-yellow-normal) / var(--bk-tw-border-opacity, 1));
|
|
429
|
+
|
|
430
|
+
transition-property: all;
|
|
431
|
+
|
|
432
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
433
|
+
|
|
434
|
+
transition-duration: 200ms;
|
|
435
|
+
|
|
436
|
+
transition-timing-function: cubic-bezier(0.56, 0.04, 0.25, 1);
|
|
437
|
+
|
|
438
|
+
background-color: rgb(var(--bk-theme-yellow-normal) / 0.3);
|
|
439
|
+
|
|
440
|
+
--bk-tw-ring-offset-shadow: var(--bk-tw-ring-inset) 0 0 0 var(--bk-tw-ring-offset-width) var(--bk-tw-ring-offset-color);
|
|
441
|
+
|
|
442
|
+
--bk-tw-ring-shadow: var(--bk-tw-ring-inset) 0 0 0 calc(1px + var(--bk-tw-ring-offset-width)) var(--bk-tw-ring-color);
|
|
443
|
+
|
|
444
|
+
box-shadow: var(--bk-tw-ring-offset-shadow), var(--bk-tw-ring-shadow), var(--bk-tw-shadow, 0 0 #0000);
|
|
445
|
+
|
|
446
|
+
--bk-tw-ring-color: rgb(var(--bk-theme-yellow-light) / 0.8)
|
|
447
|
+
}
|
|
448
|
+
</style>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
@toggle="onToggleSelected"
|
|
27
27
|
/>
|
|
28
28
|
</div>
|
|
29
|
-
<Loading v-if="isLocked" white />
|
|
29
|
+
<Loading v-if="isLocked" theme="white" />
|
|
30
30
|
</main>
|
|
31
31
|
<footer>
|
|
32
32
|
<button
|
|
@@ -224,3 +224,134 @@ onBeforeUnmount(() => {
|
|
|
224
224
|
selection.unlockSelection("transform-dialog");
|
|
225
225
|
});
|
|
226
226
|
</script>
|
|
227
|
+
|
|
228
|
+
<style>
|
|
229
|
+
.bk.bk-transform-overlay {
|
|
230
|
+
pointer-events: auto;
|
|
231
|
+
position: absolute;
|
|
232
|
+
top: 0px;
|
|
233
|
+
left: 0px;
|
|
234
|
+
z-index: calc(var(--bk-z-index-base) + 310000) /* "transform-overlay" */;
|
|
235
|
+
width: 100%;
|
|
236
|
+
height: 100%;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog {
|
|
240
|
+
width: 600px;
|
|
241
|
+
position: absolute;
|
|
242
|
+
top: 0px;
|
|
243
|
+
right: 0px;
|
|
244
|
+
bottom: 0px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog header {
|
|
248
|
+
display: flex;
|
|
249
|
+
align-items: center;
|
|
250
|
+
justify-content: space-between;
|
|
251
|
+
--bk-tw-bg-opacity: 1;
|
|
252
|
+
background-color: rgb(var(--bk-theme-orange-normal) / var(--bk-tw-bg-opacity, 1));
|
|
253
|
+
--bk-tw-text-opacity: 1;
|
|
254
|
+
color: rgb(var(--bk-theme-orange-dark) / var(--bk-tw-text-opacity, 1));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog header p {
|
|
258
|
+
padding-left: 20px;
|
|
259
|
+
padding-right: 20px;
|
|
260
|
+
font-weight: 700;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog header button {
|
|
264
|
+
display: flex;
|
|
265
|
+
align-items: center;
|
|
266
|
+
justify-content: center;
|
|
267
|
+
color: currentColor;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog header button:hover {
|
|
271
|
+
background-color: rgb(var(--bk-theme-orange-dark) / 0.2);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog header button {
|
|
275
|
+
width: 50px;
|
|
276
|
+
height: 50px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog header button svg {
|
|
280
|
+
width: 25px;
|
|
281
|
+
height: 25px;
|
|
282
|
+
fill: currentColor;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog main {
|
|
286
|
+
position: relative;
|
|
287
|
+
flex: 1 1 0%;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog main .bk-lead {
|
|
291
|
+
margin-bottom: 15px;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog footer {
|
|
295
|
+
display: flex;
|
|
296
|
+
justify-content: space-between;
|
|
297
|
+
border-top-width: 1px;
|
|
298
|
+
--bk-tw-border-opacity: 1;
|
|
299
|
+
border-top-color: rgb(var(--bk-theme-mono-300) / var(--bk-tw-border-opacity, 1));
|
|
300
|
+
padding: 20px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog-inner {
|
|
304
|
+
height: 100%;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog-inner-content {
|
|
308
|
+
display: flex;
|
|
309
|
+
height: 100%;
|
|
310
|
+
width: 100%;
|
|
311
|
+
flex-direction: column;
|
|
312
|
+
overflow: hidden;
|
|
313
|
+
--bk-tw-bg-opacity: 1;
|
|
314
|
+
background-color: rgb(255 255 255 / var(--bk-tw-bg-opacity, 1));
|
|
315
|
+
--bk-tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
316
|
+
--bk-tw-shadow-colored: 0 25px 50px -12px var(--bk-tw-shadow-color);
|
|
317
|
+
box-shadow: var(--bk-tw-ring-offset-shadow, 0 0 #0000), var(--bk-tw-ring-shadow, 0 0 #0000), var(--bk-tw-shadow);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog-grid {
|
|
321
|
+
position: absolute;
|
|
322
|
+
top: 0px;
|
|
323
|
+
left: 0px;
|
|
324
|
+
width: 100%;
|
|
325
|
+
height: 100%;
|
|
326
|
+
overflow: auto;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog-grid .bk-diff-table td {
|
|
330
|
+
padding-left: 20px !important;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.bk.bk-transform-overlay .bk-transform-overlay-dialog-top {
|
|
334
|
+
padding: 20px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.bk-transform-overlay-enter-active,
|
|
338
|
+
.bk-transform-overlay-leave-active {
|
|
339
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
340
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
341
|
+
transition-duration: 300ms;
|
|
342
|
+
transition-timing-function: cubic-bezier(0.56, 0.04, 0.25, 1);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.bk-transform-overlay-enter-active .bk-transform-overlay-dialog-inner, .bk-transform-overlay-leave-active .bk-transform-overlay-dialog-inner {
|
|
346
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
|
|
347
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
348
|
+
transition-duration: 300ms;
|
|
349
|
+
transition-timing-function: cubic-bezier(0.56, 0.04, 0.25, 1);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.bk-transform-overlay-enter-from .bk-transform-overlay-dialog-inner, .bk-transform-overlay-leave-to .bk-transform-overlay-dialog-inner {
|
|
353
|
+
--bk-tw-translate-x: 100%;
|
|
354
|
+
transform: translate(var(--bk-tw-translate-x), var(--bk-tw-translate-y)) rotate(var(--bk-tw-rotate)) skewX(var(--bk-tw-skew-x)) skewY(var(--bk-tw-skew-y)) scaleX(var(--bk-tw-scale-x)) scaleY(var(--bk-tw-scale-y));
|
|
355
|
+
opacity: 0;
|
|
356
|
+
}
|
|
357
|
+
</style>
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { Language } from '#blokkli/editor/types/state';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
activeLanguage: Language;
|
|
4
|
+
showCsv?: boolean;
|
|
5
|
+
showTranslate?: boolean;
|
|
6
|
+
dialogOpen?: boolean;
|
|
4
7
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"mark-all-up-to-date": (uuids: string[]) => void;
|
|
10
|
+
"open-csv": () => void;
|
|
11
|
+
"open-translate": () => void;
|
|
12
|
+
"import-file": (files: File[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onMark-all-up-to-date"?: ((uuids: string[]) => any) | undefined;
|
|
15
|
+
"onOpen-csv"?: (() => any) | undefined;
|
|
16
|
+
"onOpen-translate"?: (() => any) | undefined;
|
|
17
|
+
"onImport-file"?: ((files: File[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
19
|
declare const _default: typeof __VLS_export;
|
|
7
20
|
export default _default;
|
|
@@ -1,21 +1,134 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<Banner
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
<Banner id="translate" scheme="yellow">
|
|
3
|
+
<FileDropHandler
|
|
4
|
+
icon="bk_mdi_translate"
|
|
5
|
+
:label="$t('translationsDropToImport', 'Drop CSV or PO file to import')"
|
|
6
|
+
:accept="acceptTranslationFile"
|
|
7
|
+
@drop="onFileDrop"
|
|
8
|
+
>
|
|
9
|
+
<BannerInner
|
|
10
|
+
icon="bk_mdi_translate"
|
|
11
|
+
:text
|
|
12
|
+
:button="$t('translationsBannerButton', 'Edit source language instead')"
|
|
13
|
+
@click="onClick"
|
|
14
|
+
>
|
|
15
|
+
<template #before>
|
|
16
|
+
<TransitionHeight opacity :duration="300">
|
|
17
|
+
<div v-if="outdatedUuids.length" class="_bk_pb-10">
|
|
18
|
+
<div
|
|
19
|
+
class="_bk_pb-10 _bk_border-b _bk_border-b-scheme-dark/40 _bk_flex _bk_justify-between _bk_items-center"
|
|
20
|
+
>
|
|
21
|
+
<div class="_bk_text-base" v-html="outdatedLabel" />
|
|
22
|
+
<div class="_bk_flex _bk_gap-5 _bk_relative">
|
|
23
|
+
<button
|
|
24
|
+
class="bk-button bk-is-small bk-is-scheme-outline _bk_group/tooltip"
|
|
25
|
+
@click.prevent="$emit('mark-all-up-to-date', outdatedUuids)"
|
|
26
|
+
>
|
|
27
|
+
{{
|
|
28
|
+
$t(
|
|
29
|
+
"translationsBannerMarkAllAsUpToDate",
|
|
30
|
+
"Mark all as up-to-date"
|
|
31
|
+
)
|
|
32
|
+
}}
|
|
33
|
+
</button>
|
|
34
|
+
<button
|
|
35
|
+
class="bk-button bk-is-small bk-is-scheme-outline _bk_group/tooltip"
|
|
36
|
+
@click.prevent="eventBus.emit('select:prev', outdatedUuids)"
|
|
37
|
+
>
|
|
38
|
+
<Icon name="bk_mdi_arrow_left_alt" />
|
|
39
|
+
{{ $t("translationsBannerPrev", "Previous block") }}
|
|
40
|
+
</button>
|
|
41
|
+
<button
|
|
42
|
+
class="bk-button bk-is-small bk-is-scheme-outline _bk_group/tooltip"
|
|
43
|
+
@click.prevent="eventBus.emit('select:next', outdatedUuids)"
|
|
44
|
+
>
|
|
45
|
+
{{ $t("translationsBannerNext", "Next block") }}
|
|
46
|
+
<Icon name="bk_mdi_arrow_right_alt" />
|
|
47
|
+
</button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</TransitionHeight>
|
|
52
|
+
</template>
|
|
53
|
+
<template v-if="showCsv || showTranslate" #before-button>
|
|
54
|
+
<div class="_bk_flex _bk_gap-10 _bk_relative">
|
|
55
|
+
<button
|
|
56
|
+
v-if="showTranslate"
|
|
57
|
+
class="bk-button bk-is-small bk-is-scheme-outline _bk_group/tooltip"
|
|
58
|
+
@click.prevent="$emit('open-translate')"
|
|
59
|
+
>
|
|
60
|
+
<Icon name="bk_mdi_translate" />
|
|
61
|
+
{{ $t("translationsAutoTranslateButton", "Auto-translate...") }}
|
|
62
|
+
<Tooltip
|
|
63
|
+
:label="
|
|
64
|
+
$t(
|
|
65
|
+
'translationsAutoTranslateTooltip',
|
|
66
|
+
'Automatically translate all texts using a translation service'
|
|
67
|
+
)
|
|
68
|
+
"
|
|
69
|
+
placement="above-left"
|
|
70
|
+
/>
|
|
71
|
+
</button>
|
|
72
|
+
<button
|
|
73
|
+
v-if="showCsv"
|
|
74
|
+
class="bk-button bk-is-small bk-is-scheme-outline _bk_group/tooltip"
|
|
75
|
+
@click.prevent="$emit('open-csv')"
|
|
76
|
+
>
|
|
77
|
+
<Icon name="bk_mdi_upload" />
|
|
78
|
+
{{ $t("translationsCsvMenuTitle", "Import/export...") }}
|
|
79
|
+
<Tooltip
|
|
80
|
+
:label="
|
|
81
|
+
$t(
|
|
82
|
+
'translationsCsvTooltip',
|
|
83
|
+
'Import or export translations as CSV or PO files'
|
|
84
|
+
)
|
|
85
|
+
"
|
|
86
|
+
placement="above-left"
|
|
87
|
+
/>
|
|
88
|
+
</button>
|
|
89
|
+
</div>
|
|
90
|
+
</template>
|
|
91
|
+
</BannerInner>
|
|
92
|
+
</FileDropHandler>
|
|
93
|
+
</Banner>
|
|
10
94
|
</template>
|
|
11
95
|
|
|
12
96
|
<script setup>
|
|
13
97
|
import { computed, useBlokkli, onMounted, onBeforeUnmount } from "#imports";
|
|
14
|
-
import {
|
|
98
|
+
import {
|
|
99
|
+
Banner,
|
|
100
|
+
BannerInner,
|
|
101
|
+
FileDropHandler,
|
|
102
|
+
Icon,
|
|
103
|
+
TransitionHeight,
|
|
104
|
+
Tooltip
|
|
105
|
+
} from "#blokkli/editor/components";
|
|
15
106
|
const props = defineProps({
|
|
16
|
-
activeLanguage: { type: Object, required: true }
|
|
107
|
+
activeLanguage: { type: Object, required: true },
|
|
108
|
+
showCsv: { type: Boolean, required: false },
|
|
109
|
+
showTranslate: { type: Boolean, required: false },
|
|
110
|
+
dialogOpen: { type: Boolean, required: false }
|
|
17
111
|
});
|
|
18
|
-
const { $t, adapter, state, ui } = useBlokkli();
|
|
112
|
+
const { $t, adapter, state, ui, eventBus, blocks } = useBlokkli();
|
|
113
|
+
const emit = defineEmits(["mark-all-up-to-date", "open-csv", "open-translate", "import-file"]);
|
|
114
|
+
const outdatedUuids = computed(() => {
|
|
115
|
+
const lang = props.activeLanguage.id;
|
|
116
|
+
return blocks.getAllBlocks().filter((b) => b.outdatedTranslations.includes(lang)).map((b) => b.uuid);
|
|
117
|
+
});
|
|
118
|
+
function acceptTranslationFile(item) {
|
|
119
|
+
if (!props.showCsv || props.dialogOpen) return false;
|
|
120
|
+
if (item.kind !== "file") return false;
|
|
121
|
+
if (item.type.startsWith("text/") || !item.type) return true;
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
function onFileDrop(files) {
|
|
125
|
+
const matched = files.filter(
|
|
126
|
+
(f) => f.name.endsWith(".csv") || f.name.endsWith(".po")
|
|
127
|
+
);
|
|
128
|
+
if (matched.length) {
|
|
129
|
+
emit("import-file", matched);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
19
132
|
const onClick = () => {
|
|
20
133
|
const sourceLanguage = state.translation.value.sourceLanguage;
|
|
21
134
|
if (!sourceLanguage) {
|
|
@@ -36,9 +149,23 @@ const onClick = () => {
|
|
|
36
149
|
const text = computed(() => {
|
|
37
150
|
return $t(
|
|
38
151
|
"translationsBannerText",
|
|
39
|
-
"You are currently editing the <strong>@language</strong> translation.
|
|
152
|
+
"You are currently editing the <strong>@language</strong> translation."
|
|
40
153
|
).replace("@language", props.activeLanguage.name);
|
|
41
154
|
});
|
|
155
|
+
const outdatedLabel = computed(() => {
|
|
156
|
+
const count = outdatedUuids.value.length;
|
|
157
|
+
if (!count) {
|
|
158
|
+
return null;
|
|
159
|
+
}
|
|
160
|
+
const key = count === 1 ? $t(
|
|
161
|
+
"translationsBannerOutdatedSingular",
|
|
162
|
+
"@count block has an <strong>outdated translation</strong>."
|
|
163
|
+
) : $t(
|
|
164
|
+
"translationsBannerOutdatedCount",
|
|
165
|
+
"@count blocks have <strong>outdated translations</strong>."
|
|
166
|
+
);
|
|
167
|
+
return key.replace("@count", String(count));
|
|
168
|
+
});
|
|
42
169
|
onMounted(() => {
|
|
43
170
|
ui.setSelectionColor("translating", "mono");
|
|
44
171
|
});
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
import type { Language } from '#blokkli/editor/types/state';
|
|
2
2
|
type __VLS_Props = {
|
|
3
3
|
activeLanguage: Language;
|
|
4
|
+
showCsv?: boolean;
|
|
5
|
+
showTranslate?: boolean;
|
|
6
|
+
dialogOpen?: boolean;
|
|
4
7
|
};
|
|
5
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
"mark-all-up-to-date": (uuids: string[]) => void;
|
|
10
|
+
"open-csv": () => void;
|
|
11
|
+
"open-translate": () => void;
|
|
12
|
+
"import-file": (files: File[]) => void;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onMark-all-up-to-date"?: ((uuids: string[]) => any) | undefined;
|
|
15
|
+
"onOpen-csv"?: (() => any) | undefined;
|
|
16
|
+
"onOpen-translate"?: (() => any) | undefined;
|
|
17
|
+
"onImport-file"?: ((files: File[]) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
19
|
declare const _default: typeof __VLS_export;
|
|
7
20
|
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
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>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|