@blokkli/editor 2.0.0-alpha.2 → 2.0.0-alpha.21
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.d.mts +1 -1
- package/dist/module.json +5 -5
- package/dist/module.mjs +5549 -1269
- package/dist/modules/drupal/graphql/base/fragment.ParagraphsBlokkliConfigInput.graphql +31 -0
- package/dist/modules/drupal/graphql/base/fragment.blokkliProps.graphql +9 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsBlokkliEditState.graphql +5 -0
- package/dist/modules/drupal/graphql/base/fragment.paragraphsFieldItem.graphql +9 -0
- package/dist/modules/drupal/graphql/base/query.pbConfig.graphql +1 -10
- package/dist/modules/drupal/graphql/base/query.pbEntityConfig.graphql +5 -0
- package/dist/modules/drupal/graphql/features/comments.graphql +11 -8
- package/dist/modules/drupal/graphql/features/publishNew.graphql +1 -4
- package/dist/modules/drupal/graphql/features/scheduler.graphql +31 -0
- package/dist/modules/drupal/graphql/features/transform.graphql +9 -1
- package/dist/modules/drupal/graphql/features/transform_host.graphql +38 -0
- package/dist/modules/drupal/graphql/mutations/set_paragraph_schedule.graphql +15 -0
- package/dist/modules/drupal/graphql/mutations/update_host_options.graphql +15 -0
- package/dist/modules/drupal/index.d.mts +1 -1
- package/dist/modules/drupal/index.mjs +79 -9
- package/dist/modules/drupal/runtime/adapter/index.d.ts +3 -0
- package/dist/modules/drupal/{adapter/index.mjs → runtime/adapter/index.js} +166 -20
- package/dist/runtime/adapter/index.d.ts +111 -1
- package/dist/runtime/blokkliPlugins/AddAction/index.vue +27 -3
- package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue +65 -0
- package/dist/runtime/blokkliPlugins/BlockIndicator/index.vue.d.ts +26 -0
- package/dist/runtime/blokkliPlugins/ContextMenu/Menu/index.vue +6 -0
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +3 -2
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue.d.ts +2 -19
- package/dist/runtime/blokkliPlugins/DebugOverlay/index.vue.d.ts +2 -7
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +3 -3
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue.d.ts +2 -19
- package/dist/runtime/blokkliPlugins/ItemAction/index.vue +23 -15
- package/dist/runtime/blokkliPlugins/ItemAction/index.vue.d.ts +21 -44
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +49 -11
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +29 -15
- package/dist/runtime/blokkliPlugins/MenuButton/index.vue.d.ts +3 -3
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +6 -7
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue.d.ts +2 -51
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue +2 -9
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +15 -9
- package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue.d.ts +1 -1
- package/dist/runtime/blokkliPlugins/TourItem/index.vue +10 -5
- package/dist/runtime/blokkliPlugins/TourItem/index.vue.d.ts +2 -4
- package/dist/runtime/blokkliPlugins/ViewOption/index.vue +6 -3
- package/dist/runtime/blokkliPlugins/ViewOption/index.vue.d.ts +4 -3
- package/dist/runtime/blokkliPlugins/index.d.ts +8 -7
- package/dist/runtime/blokkliPlugins/index.js +15 -13
- package/dist/runtime/components/Blocks/Fragment/icon.svg +1 -1
- package/dist/runtime/components/Blocks/FromLibrary/index.vue +4 -2
- package/dist/runtime/components/BlokkliEditable.vue +34 -16
- package/dist/runtime/components/BlokkliEditable.vue.d.ts +2 -1
- package/dist/runtime/components/BlokkliField.vue +31 -27
- package/dist/runtime/components/BlokkliField.vue.d.ts +61 -17
- package/dist/runtime/components/BlokkliItem.vue +2 -2
- package/dist/runtime/components/BlokkliItem.vue.d.ts +4 -2
- package/dist/runtime/components/BlokkliProvider.vue +60 -45
- package/dist/runtime/components/BlokkliProvider.vue.d.ts +45 -7
- package/dist/runtime/components/Edit/Actions/index.vue +69 -78
- package/dist/runtime/components/Edit/AddListItem/index.vue +2 -5
- package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/AddListItemIcon/index.vue +19 -0
- package/dist/runtime/components/Edit/AddListItemIcon/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/AnimationCanvas/index.vue +436 -25
- package/dist/runtime/components/Edit/AppMenu/index.vue +5 -5
- package/dist/runtime/components/Edit/ArtboardTooltip/index.vue +83 -0
- package/dist/runtime/components/Edit/ArtboardTooltip/index.vue.d.ts +32 -0
- package/dist/runtime/components/Edit/Banner/index.vue +51 -0
- package/dist/runtime/components/Edit/Banner/index.vue.d.ts +18 -0
- package/dist/runtime/components/Edit/BlockProxy/index.vue +3 -1
- package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue.d.ts +2 -13
- package/dist/runtime/components/Edit/Dialog/index.vue +14 -5
- package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +4 -2
- package/dist/runtime/components/Edit/DiffViewer/State.vue +276 -0
- package/dist/runtime/components/Edit/DiffViewer/State.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/DraggableList.vue +20 -50
- package/dist/runtime/components/Edit/DraggableList.vue.d.ts +7 -7
- package/dist/runtime/components/Edit/EditIndicator.vue +118 -44
- package/dist/runtime/components/Edit/EditIndicator.vue.d.ts +3 -0
- package/dist/runtime/components/Edit/EditProvider.vue +192 -80
- package/dist/runtime/components/Edit/EditProvider.vue.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/AddList/index.vue +24 -36
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/fragment.glsl +58 -0
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue +170 -0
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/index.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Analyze/Overlay/vertex.glsl +72 -0
- package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue +159 -0
- package/dist/runtime/components/Edit/Features/Analyze/Renderer.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue +100 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Results.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue +56 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItem.vue.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue +87 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodes.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue +105 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue +18 -0
- package/dist/runtime/components/Edit/Features/Analyze/Results/Status.vue.d.ts +8 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue +92 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/Chart.vue.d.ts +17 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue +77 -0
- package/dist/runtime/components/Edit/Features/Analyze/Summary/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.d.ts +12 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/axe.js +75 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.d.ts +4 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/defineAnalyzer.js +5 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.d.ts +32 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/Context.js +45 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/collectTextElements.js +95 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.d.ts +3 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/helpers/normalizeArray.js +13 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/index.js +2 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/readability.js +165 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.d.ts +44 -0
- package/dist/runtime/components/Edit/Features/Analyze/analyzers/types.js +0 -0
- package/dist/runtime/components/Edit/Features/Analyze/helper.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/Analyze/helper.js +28 -0
- package/dist/runtime/components/Edit/Features/Analyze/index.vue +44 -0
- package/dist/runtime/components/Edit/Features/Anchors/Renderer.vue +53 -0
- package/dist/runtime/components/Edit/Features/Anchors/index.vue +32 -0
- package/dist/runtime/components/Edit/Features/Artboard/Overview/index.vue +25 -13
- package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue +299 -0
- package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/Artboard/index.vue +10 -217
- package/dist/runtime/components/Edit/Features/Assistant/index.vue +5 -3
- package/dist/runtime/components/Edit/Features/BlockAddList/index.vue +33 -57
- package/dist/runtime/components/Edit/Features/BlockScheduler/Dialog/ScheduleSection.vue +154 -0
- package/dist/runtime/components/Edit/Features/BlockScheduler/Dialog/ScheduleSection.vue.d.ts +27 -0
- package/dist/runtime/components/Edit/Features/BlockScheduler/Dialog/index.vue +222 -0
- package/dist/runtime/components/Edit/Features/BlockScheduler/Dialog/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/Features/BlockScheduler/index.vue +96 -0
- package/dist/runtime/components/Edit/Features/BlockScheduler/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Clipboard/index.vue +177 -46
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Item/index.vue +51 -0
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Item/index.vue.d.ts +17 -0
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +48 -117
- package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +5 -2
- package/dist/runtime/components/Edit/Features/Comments/AddForm/index.vue +35 -20
- package/dist/runtime/components/Edit/Features/Comments/AddForm/index.vue.d.ts +5 -3
- package/dist/runtime/components/Edit/Features/Comments/CommentInput/index.vue +29 -0
- package/dist/runtime/components/Edit/Features/Comments/CommentInput/index.vue.d.ts +13 -0
- package/dist/runtime/components/Edit/Features/Comments/Overlay/Item/index.vue +22 -16
- package/dist/runtime/components/Edit/Features/Comments/Overlay/Item/index.vue.d.ts +1 -0
- package/dist/runtime/components/Edit/Features/Comments/Overlay/index.vue +15 -6
- package/dist/runtime/components/Edit/Features/Comments/index.vue +21 -9
- package/dist/runtime/components/Edit/Features/Conversions/index.vue +16 -21
- package/dist/runtime/components/Edit/Features/Debug/Rects/index.vue +26 -35
- package/dist/runtime/components/Edit/Features/Debug/Renderer.vue +240 -0
- package/dist/runtime/components/Edit/Features/Debug/Renderer.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Debug/Viewport/index.vue +14 -0
- package/dist/runtime/components/Edit/Features/Debug/index.vue +7 -162
- package/dist/runtime/components/Edit/Features/Delete/index.vue +1 -1
- package/dist/runtime/components/Edit/Features/Diff/DiffView/index.vue +13 -190
- package/dist/runtime/components/Edit/Features/Diff/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +18 -10
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +8 -2
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue +111 -121
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/index.vue.d.ts +3 -132
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/vertex.glsl +2 -1
- package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +87 -61
- package/dist/runtime/components/Edit/Features/Duplicate/index.vue +6 -8
- package/dist/runtime/components/Edit/Features/Edit/index.vue +16 -22
- package/dist/runtime/components/Edit/Features/EditForm/Frame/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/EditForm/index.vue +10 -9
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Frame/index.vue +69 -4
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Frame/index.vue.d.ts +2 -2
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/Plaintext/index.vue +13 -9
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/index.vue +45 -87
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/index.vue.d.ts +2 -2
- package/dist/runtime/components/Edit/Features/EditableField/index.vue +45 -43
- package/dist/runtime/components/Edit/Features/EditableMask/index.vue +3 -20
- package/dist/runtime/components/Edit/Features/EntityTitle/index.vue +33 -1
- package/dist/runtime/components/Edit/Features/Fragments/Dialog/index.vue +11 -9
- package/dist/runtime/components/Edit/Features/Fragments/index.vue +8 -6
- package/dist/runtime/components/Edit/Features/History/index.vue +39 -13
- package/dist/runtime/components/Edit/Features/Hover/Overlay/fragment.glsl +139 -0
- package/dist/runtime/components/Edit/Features/Hover/Overlay/index.vue +261 -0
- package/dist/runtime/components/Edit/Features/Hover/Overlay/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Hover/Overlay/vertex.glsl +117 -0
- package/dist/runtime/components/Edit/Features/Hover/index.vue +25 -0
- package/dist/runtime/components/Edit/Features/Hover/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +6 -2
- package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Library/EditReusable/index.vue +5 -7
- package/dist/runtime/components/Edit/Features/Library/LibraryDialog/index.vue +19 -27
- package/dist/runtime/components/Edit/Features/Library/ReusableDialog/index.vue +32 -28
- package/dist/runtime/components/Edit/Features/Library/index.vue +40 -32
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +11 -11
- package/dist/runtime/components/Edit/Features/MediaLibrary/index.vue +15 -12
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/fragment.glsl +1 -1
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/index.vue +44 -32
- package/dist/runtime/components/Edit/Features/MultiSelect/Overlay/vertex.glsl +1 -1
- package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +10 -18
- package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Options/Form/Checkbox/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Options/Form/Group.vue.d.ts +2 -11
- package/dist/runtime/components/Edit/Features/Options/Form/Item.vue +14 -3
- package/dist/runtime/components/Edit/Features/Options/Form/Item.vue.d.ts +0 -1
- package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue +37 -19
- package/dist/runtime/components/Edit/Features/Options/Form/Radios/index.vue.d.ts +8 -2
- package/dist/runtime/components/Edit/Features/Options/Form/index.vue +88 -42
- package/dist/runtime/components/Edit/Features/Options/Form/index.vue.d.ts +5 -5
- package/dist/runtime/components/Edit/Features/Options/index.vue +35 -11
- package/dist/runtime/components/Edit/Features/Ownership/Renderer.vue +35 -0
- package/dist/runtime/components/Edit/Features/Ownership/Renderer.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Ownership/index.vue +7 -25
- package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/ProxyView/index.vue +5 -1
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue +41 -14
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Item.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/PublishOption.vue +47 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/PublishOption.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Summary.vue +83 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/Summary.vue.d.ts +9 -0
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +439 -123
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue.d.ts +3 -14
- package/dist/runtime/components/Edit/Features/Publish/index.vue +57 -24
- package/dist/runtime/components/Edit/Features/ResponsivePreview/Frame/index.vue.d.ts +2 -13
- package/dist/runtime/components/Edit/Features/Revert/index.vue +3 -3
- package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Page/index.vue +15 -15
- package/dist/runtime/components/Edit/Features/Search/index.vue +7 -3
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue +85 -0
- package/dist/runtime/components/Edit/Features/{CommandPalette/Palette/Group → Selection/AddButtons/Overlay}/index.vue.d.ts +8 -13
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/fragment.glsl +106 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/index.vue +440 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/index.vue.d.ts +32 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/vertex.glsl +102 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue +387 -0
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Selection/Overlay/fragment.glsl +15 -10
- package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue +105 -25
- package/dist/runtime/components/Edit/Features/Selection/Overlay/index.vue.d.ts +5 -3
- package/dist/runtime/components/Edit/Features/Selection/Overlay/vertex.glsl +12 -3
- package/dist/runtime/components/Edit/Features/Selection/OverlayFallback/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Selection/index.vue +135 -25
- package/dist/runtime/components/Edit/Features/Settings/Dialog/FeatureSetting/index.vue +12 -17
- package/dist/runtime/components/Edit/Features/Settings/index.vue +11 -25
- package/dist/runtime/components/Edit/Features/Structure/List/Field/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Structure/List/Item/index.vue +13 -6
- package/dist/runtime/components/Edit/Features/Theme/Color/index.vue +5 -1
- package/dist/runtime/components/Edit/Features/Theme/index.vue +2 -1
- package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Tour/Overlay/index.vue +3 -0
- package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue +198 -0
- package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue.d.ts +13 -0
- package/dist/runtime/components/Edit/Features/Transform/index.vue +156 -70
- package/dist/runtime/components/Edit/Features/Translations/Banner/index.vue +17 -11
- package/dist/runtime/components/Edit/Features/Translations/index.vue +20 -23
- package/dist/runtime/components/Edit/Features/Validations/SidebarItem/index.vue +5 -5
- package/dist/runtime/components/Edit/Features/index.vue +17 -7
- package/dist/runtime/components/Edit/Form/Datepicker/index.vue +198 -0
- package/dist/runtime/components/Edit/Form/Datepicker/index.vue.d.ts +15 -0
- package/dist/runtime/components/Edit/Form/Group/index.vue.d.ts +2 -4
- package/dist/runtime/components/Edit/Form/Item/index.vue.d.ts +2 -4
- package/dist/runtime/components/Edit/Form/Radio/index.vue +33 -0
- package/dist/runtime/components/Edit/Form/Radio/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Form/RadioTabs/index.vue +37 -0
- package/dist/runtime/components/Edit/Form/RadioTabs/index.vue.d.ts +22 -0
- package/dist/runtime/components/Edit/Form/Select/index.vue +29 -0
- package/dist/runtime/components/Edit/Form/Select/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Form/Text/index.vue +34 -0
- package/dist/runtime/components/Edit/Form/Text/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/Form/Textarea/index.vue +13 -6
- package/dist/runtime/components/Edit/Form/Textarea/index.vue.d.ts +4 -0
- package/dist/runtime/components/Edit/Form/Toggle/index.vue +4 -3
- package/dist/runtime/components/Edit/Form/Toggle/index.vue.d.ts +12 -2
- package/dist/runtime/components/Edit/FormOverlay/index.vue +1 -1
- package/dist/runtime/components/Edit/FormOverlay/index.vue.d.ts +3 -2
- package/dist/runtime/components/Edit/Indicators/index.vue +123 -0
- package/dist/runtime/components/Edit/Indicators/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/InfoBox/index.vue +6 -2
- package/dist/runtime/components/Edit/InfoBox/index.vue.d.ts +12 -2
- package/dist/runtime/components/Edit/ItemIcon/index.vue +2 -1
- package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue +66 -0
- package/dist/runtime/components/Edit/Konami/Game/PixelGrid.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Konami/Game/blokkli.png +0 -0
- package/dist/runtime/components/Edit/Konami/Game/charmap.d.ts +2 -0
- package/dist/runtime/components/Edit/Konami/Game/charmap.js +168 -0
- package/dist/runtime/components/Edit/Konami/Game/index.vue +752 -0
- package/dist/runtime/components/Edit/Konami/Game/index.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Konami/Game/textRendering.d.ts +8 -0
- package/dist/runtime/components/Edit/Konami/Game/textRendering.js +138 -0
- package/dist/runtime/components/Edit/Konami/Game/useIconRendering.d.ts +9 -0
- package/dist/runtime/components/Edit/Konami/Game/useIconRendering.js +130 -0
- package/dist/runtime/components/Edit/Konami/index.vue +44 -0
- package/dist/runtime/components/Edit/Konami/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Loading/index.vue +6 -2
- package/dist/runtime/components/Edit/Loading/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Messages/index.vue +8 -3
- package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue +17 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Checkbox/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue +37 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Options/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue +43 -0
- package/dist/runtime/components/Edit/PluginConfigForm/Text/index.vue.d.ts +11 -0
- package/dist/runtime/components/Edit/PluginConfigForm/index.vue +57 -0
- package/dist/runtime/components/Edit/PluginConfigForm/index.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/PreviewProvider.vue +3 -4
- package/dist/runtime/components/Edit/RelativeTime/index.vue +3 -2
- package/dist/runtime/components/Edit/RelativeTime/index.vue.d.ts +2 -2
- package/dist/runtime/components/Edit/Resizable/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/ScaleToFit/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/ScheduleDate/index.vue +131 -0
- package/dist/runtime/components/Edit/ScheduleDate/index.vue.d.ts +23 -0
- package/dist/runtime/components/Edit/ScrollBoundary/index.vue.d.ts +2 -7
- package/dist/runtime/components/Edit/ShortcutIndicator/index.vue +11 -3
- package/dist/runtime/components/Edit/Sortli/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/SystemRequirements/index.vue +3 -3
- package/dist/runtime/components/Edit/Toolbar/index.vue +3 -2
- package/dist/runtime/components/Edit/Transition/Height.vue +95 -0
- package/dist/runtime/components/Edit/Transition/Height.vue.d.ts +36 -0
- package/dist/runtime/components/Edit/Transition/index.vue +41 -0
- package/dist/runtime/components/Edit/Transition/index.vue.d.ts +19 -0
- package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue.d.ts +2 -7
- package/dist/runtime/components/Edit/index.d.ts +28 -15
- package/dist/runtime/components/Edit/index.js +54 -28
- package/dist/runtime/composables/defineBlokkli.js +16 -3
- package/dist/runtime/composables/defineBlokkliFeature.d.ts +4 -7
- package/dist/runtime/composables/defineBlokkliFragment.js +8 -1
- package/dist/runtime/composables/defineBlokkliProvider.d.ts +11 -0
- package/dist/runtime/composables/defineBlokkliProvider.js +46 -0
- package/dist/runtime/composables/useBlokkliHelper.d.ts +19 -0
- package/dist/runtime/composables/useBlokkliHelper.js +95 -0
- package/dist/runtime/constants/index.d.ts +3 -0
- package/dist/runtime/constants/index.js +3 -0
- package/dist/runtime/css/output.css +1 -1
- package/dist/runtime/helpers/addElementClasses.d.ts +2 -0
- package/dist/runtime/helpers/addElementClasses.js +24 -0
- package/dist/runtime/helpers/animationProvider.d.ts +38 -2
- package/dist/runtime/helpers/animationProvider.js +188 -47
- package/dist/runtime/helpers/bundles/index.d.ts +1 -0
- package/dist/runtime/helpers/bundles/index.js +4 -0
- package/dist/runtime/helpers/composables/defineRenderer.d.ts +8 -0
- package/dist/runtime/helpers/composables/defineRenderer.js +8 -0
- package/dist/runtime/helpers/composables/useBlockRegistration.d.ts +5 -0
- package/dist/runtime/helpers/composables/useBlockRegistration.js +23 -0
- package/dist/runtime/helpers/composables/useDelayedIntersectionObserver.d.ts +1 -1
- package/dist/runtime/helpers/composables/useDelayedIntersectionObserver.js +3 -2
- package/dist/runtime/helpers/composables/useStateBasedCache.d.ts +4 -0
- package/dist/runtime/helpers/composables/useStateBasedCache.js +13 -0
- package/dist/runtime/helpers/composables/useStickyToolbar.d.ts +23 -0
- package/dist/runtime/helpers/composables/useStickyToolbar.js +233 -0
- package/dist/runtime/helpers/definitionProvider.d.ts +3 -2
- package/dist/runtime/helpers/definitionProvider.js +17 -0
- package/dist/runtime/helpers/dom/index.d.ts +60 -0
- package/dist/runtime/helpers/dom/index.js +48 -0
- package/dist/runtime/helpers/domProvider.d.ts +58 -17
- package/dist/runtime/helpers/domProvider.js +320 -245
- package/dist/runtime/helpers/dropTargets/index.d.ts +6 -0
- package/dist/runtime/helpers/dropTargets/index.js +49 -0
- package/dist/runtime/helpers/eventBus.d.ts +1 -1
- package/dist/runtime/helpers/eventBus.js +2 -2
- package/dist/runtime/helpers/index.d.ts +10 -14
- package/dist/runtime/helpers/index.js +58 -121
- package/dist/runtime/helpers/indicatorsProvider.d.ts +10 -0
- package/dist/runtime/helpers/indicatorsProvider.js +23 -0
- package/dist/runtime/helpers/keyboardProvider.d.ts +2 -0
- package/dist/runtime/helpers/keyboardProvider.js +17 -1
- package/dist/runtime/helpers/pluginProvider.d.ts +10 -0
- package/dist/runtime/helpers/pluginProvider.js +33 -0
- package/dist/runtime/helpers/providers/blocks.d.ts +10 -0
- package/dist/runtime/helpers/providers/blocks.js +91 -0
- package/dist/runtime/helpers/providers/directive.d.ts +25 -0
- package/dist/runtime/helpers/providers/directive.js +208 -0
- package/dist/runtime/helpers/providers/element.d.ts +6 -0
- package/dist/runtime/helpers/providers/element.js +35 -0
- package/dist/runtime/helpers/providers/fields.d.ts +8 -0
- package/dist/runtime/helpers/providers/fields.js +47 -0
- package/dist/runtime/helpers/renderCycle.d.ts +1 -0
- package/dist/runtime/helpers/renderCycle.js +10 -0
- package/dist/runtime/helpers/runtimeHelpers/index.js +15 -12
- package/dist/runtime/helpers/selectionProvider.d.ts +27 -11
- package/dist/runtime/helpers/selectionProvider.js +79 -74
- package/dist/runtime/helpers/stateProvider.d.ts +12 -2
- package/dist/runtime/helpers/stateProvider.js +164 -20
- package/dist/runtime/helpers/storageProvider.d.ts +5 -3
- package/dist/runtime/helpers/storageProvider.js +61 -4
- package/dist/runtime/helpers/symbols.d.ts +2 -0
- package/dist/runtime/helpers/symbols.js +2 -0
- package/dist/runtime/helpers/textProvider.js +6 -0
- package/dist/runtime/helpers/themeProvider.d.ts +4 -1
- package/dist/runtime/helpers/themeProvider.js +28 -15
- package/dist/runtime/helpers/transform.js +1 -3
- package/dist/runtime/helpers/typesProvider.js +10 -26
- package/dist/runtime/helpers/uiProvider.d.ts +18 -3
- package/dist/runtime/helpers/uiProvider.js +114 -61
- package/dist/runtime/helpers/useTransitionedValue.d.ts +18 -0
- package/dist/runtime/helpers/useTransitionedValue.js +57 -0
- package/dist/runtime/helpers/webgl/index.d.ts +11 -2
- package/dist/runtime/helpers/webgl/index.js +162 -7
- package/dist/runtime/icons/anchor.svg +1 -0
- package/dist/runtime/icons/arrow-left.svg +1 -1
- package/dist/runtime/icons/arrow-right.svg +1 -1
- package/dist/runtime/icons/arrow-top-right.svg +1 -0
- package/dist/runtime/icons/calendar-clock.svg +1 -0
- package/dist/runtime/icons/calendar.svg +1 -0
- package/dist/runtime/icons/chart.svg +1 -0
- package/dist/runtime/icons/clock.svg +1 -0
- package/dist/runtime/icons/comment_add.svg +1 -5
- package/dist/runtime/icons/copy.svg +1 -0
- package/dist/runtime/icons/cursor-move.svg +1 -1
- package/dist/runtime/icons/delete.svg +1 -8
- package/dist/runtime/icons/diff.svg +1 -1
- package/dist/runtime/icons/duplicate.svg +1 -12
- package/dist/runtime/icons/edit.svg +1 -8
- package/dist/runtime/icons/eye-off.svg +1 -0
- package/dist/runtime/icons/eye.svg +1 -1
- package/dist/runtime/icons/info.svg +1 -1
- package/dist/runtime/icons/link.svg +1 -0
- package/dist/runtime/icons/reusable.svg +1 -5
- package/dist/runtime/icons/speedometer.svg +1 -0
- package/dist/runtime/plugins/blokkliDirectives.js +109 -0
- package/dist/runtime/types/blokkOptions.d.ts +8 -0
- package/dist/runtime/types/index.d.ts +278 -42
- package/dist/runtime/types/theme.d.ts +2 -1
- package/dist/shared/{editor.gz_ac6uT.d.mts → editor.CKsrTpc1.d.mts} +1 -1
- package/package.json +55 -38
- package/dist/modules/drupal/adapter/index.d.mts +0 -6
- package/dist/runtime/components/Edit/DragInteractions/index.vue +0 -364
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Group/index.vue +0 -51
- package/dist/runtime/components/Edit/Features/FieldAreas/Overlay/index.vue +0 -22
- package/dist/runtime/components/Edit/Features/FieldAreas/index.vue +0 -41
- package/dist/runtime/plugins/blokkliEditable.js +0 -31
- /package/dist/runtime/components/Edit/{DragInteractions → Features/Analyze}/index.vue.d.ts +0 -0
- /package/dist/runtime/components/Edit/Features/{FieldAreas/Overlay/index.vue.d.ts → Anchors/Renderer.vue.d.ts} +0 -0
- /package/dist/runtime/components/Edit/Features/{FieldAreas → Anchors}/index.vue.d.ts +0 -0
- /package/dist/runtime/plugins/{blokkliEditable.d.ts → blokkliDirectives.d.ts} +0 -0
|
@@ -1,30 +1,13 @@
|
|
|
1
1
|
import type { ContextMenu } from '#blokkli/types';
|
|
2
|
-
import ContextMenuMenu from './Menu/index.vue.js';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
id: string;
|
|
5
4
|
menu: ContextMenu[];
|
|
6
5
|
tag?: string;
|
|
7
6
|
};
|
|
8
|
-
declare const ui: import("../../helpers/uiProvider.js").UiProvider;
|
|
9
|
-
declare const isVisible: import("vue").ComputedRef<boolean>;
|
|
10
|
-
declare const x: import("vue").Ref<number, number>;
|
|
11
|
-
declare const y: import("vue").Ref<number, number>;
|
|
12
|
-
declare const onContextMenu: (e: MouseEvent) => void;
|
|
13
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
14
7
|
declare var __VLS_10: {};
|
|
15
|
-
type __VLS_Slots =
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
16
9
|
default?: (props: typeof __VLS_10) => any;
|
|
17
|
-
}
|
|
18
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
19
|
-
ContextMenuMenu: typeof ContextMenuMenu;
|
|
20
|
-
ui: typeof ui;
|
|
21
|
-
isVisible: typeof isVisible;
|
|
22
|
-
x: typeof x;
|
|
23
|
-
y: typeof y;
|
|
24
|
-
onContextMenu: typeof onContextMenu;
|
|
25
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
|
-
tag: string;
|
|
27
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
};
|
|
28
11
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
29
12
|
tag: string;
|
|
30
13
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -2,15 +2,10 @@ type __VLS_Props = {
|
|
|
2
2
|
id: string;
|
|
3
3
|
title: string;
|
|
4
4
|
};
|
|
5
|
-
declare const isVisible: import("vue").ComputedRef<boolean | undefined>;
|
|
6
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
7
5
|
declare var __VLS_5: {};
|
|
8
|
-
type __VLS_Slots =
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
9
7
|
default?: (props: typeof __VLS_5) => any;
|
|
10
|
-
}
|
|
11
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
12
|
-
isVisible: typeof isVisible;
|
|
13
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
};
|
|
14
9
|
declare const __VLS_component: 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>;
|
|
15
10
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
16
11
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="body">
|
|
3
|
-
<
|
|
3
|
+
<BlokkliTransition name="slide-in">
|
|
4
4
|
<FormOverlay
|
|
5
5
|
v-if="isVisible"
|
|
6
6
|
:id="id"
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
</button>
|
|
16
16
|
</template>
|
|
17
17
|
</FormOverlay>
|
|
18
|
-
</
|
|
18
|
+
</BlokkliTransition>
|
|
19
19
|
</Teleport>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|
|
23
|
-
import { FormOverlay } from "#blokkli/components";
|
|
23
|
+
import { FormOverlay, BlokkliTransition } from "#blokkli/components";
|
|
24
24
|
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
25
25
|
import { ref, useBlokkli } from "#imports";
|
|
26
26
|
const props = defineProps({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FormOverlay } from '#blokkli/components';
|
|
2
1
|
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
3
2
|
import type { DroppableEntityField } from '#blokkli/types';
|
|
4
3
|
type __VLS_Props = {
|
|
@@ -7,26 +6,10 @@ type __VLS_Props = {
|
|
|
7
6
|
icon: BlokkliIcon;
|
|
8
7
|
entityType: string;
|
|
9
8
|
};
|
|
10
|
-
declare const $t: import("../../helpers/textProvider.js").TextProvider;
|
|
11
|
-
declare const isVisible: import("vue").Ref<boolean, boolean>;
|
|
12
|
-
declare const onClose: () => void;
|
|
13
|
-
declare const onSubmit: () => void;
|
|
14
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
15
9
|
declare var __VLS_18: {};
|
|
16
|
-
type __VLS_Slots =
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
17
11
|
default?: (props: typeof __VLS_18) => any;
|
|
18
|
-
}
|
|
19
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
20
|
-
FormOverlay: typeof FormOverlay;
|
|
21
|
-
$t: typeof $t;
|
|
22
|
-
isVisible: typeof isVisible;
|
|
23
|
-
onClose: typeof onClose;
|
|
24
|
-
onSubmit: typeof onSubmit;
|
|
25
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
-
save: (data: DroppableEntityField) => any;
|
|
27
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
-
onSave?: ((data: DroppableEntityField) => any) | undefined;
|
|
29
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
};
|
|
30
13
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
31
14
|
save: (data: DroppableEntityField) => any;
|
|
32
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport to="#bk-blokkli-item-actions">
|
|
3
3
|
<button
|
|
4
|
+
v-if="shouldRender"
|
|
4
5
|
ref="el"
|
|
5
6
|
:disabled="isDisabled"
|
|
6
|
-
|
|
7
|
+
class="bk-item-action"
|
|
8
|
+
:class="[
|
|
9
|
+
{ 'bk-is-active': active, 'bk-is-last': weight === 'last' },
|
|
10
|
+
$attrs.class
|
|
11
|
+
]"
|
|
7
12
|
:style="weight !== 'last' ? { order: weight || 0 } : void 0"
|
|
8
13
|
@click.prevent.stop="onClick"
|
|
9
14
|
>
|
|
10
15
|
<slot name="icon">
|
|
11
|
-
<Icon v-if="icon" :name="icon" />
|
|
16
|
+
<Icon v-if="icon" :name="icon" class="bk-item-action-icon" />
|
|
12
17
|
</slot>
|
|
13
18
|
<div class="bk-tooltip">
|
|
14
19
|
<span>{{ title }}</span>
|
|
@@ -23,9 +28,7 @@
|
|
|
23
28
|
</div>
|
|
24
29
|
</button>
|
|
25
30
|
</Teleport>
|
|
26
|
-
<
|
|
27
|
-
<slot :items="selection.blocks.value" :uuids="uuids" />
|
|
28
|
-
</Teleport>
|
|
31
|
+
<slot :items="selection.items.value" :uuids="uuids" />
|
|
29
32
|
</template>
|
|
30
33
|
|
|
31
34
|
<script setup>
|
|
@@ -33,7 +36,7 @@ import { computed, ref, useBlokkli } from "#imports";
|
|
|
33
36
|
import { Icon, ShortcutIndicator } from "#blokkli/components";
|
|
34
37
|
import defineCommands from "#blokkli/helpers/composables/defineCommands";
|
|
35
38
|
import defineTourItem from "#blokkli/helpers/composables/defineTourItem";
|
|
36
|
-
const { selection } = useBlokkli();
|
|
39
|
+
const { selection, state } = useBlokkli();
|
|
37
40
|
const el = ref(null);
|
|
38
41
|
const uuids = computed(() => selection.uuids.value);
|
|
39
42
|
const props = defineProps({
|
|
@@ -44,26 +47,33 @@ const props = defineProps({
|
|
|
44
47
|
keyCode: { type: String, required: false },
|
|
45
48
|
meta: { type: Boolean, required: false },
|
|
46
49
|
multiple: { type: Boolean, required: false },
|
|
50
|
+
editOnly: { type: Boolean, required: false },
|
|
47
51
|
weight: { type: [Number, String], required: false },
|
|
48
52
|
icon: { type: null, required: false },
|
|
49
53
|
tourText: { type: String, required: false }
|
|
50
54
|
});
|
|
51
55
|
const isDisabled = computed(
|
|
52
|
-
() => props.disabled || !props.multiple && selection.
|
|
56
|
+
() => props.disabled || !props.multiple && selection.items.value.length > 1
|
|
53
57
|
);
|
|
58
|
+
const shouldRender = computed(() => {
|
|
59
|
+
if (props.editOnly) {
|
|
60
|
+
return state.editMode.value === "editing";
|
|
61
|
+
}
|
|
62
|
+
return true;
|
|
63
|
+
});
|
|
54
64
|
const emit = defineEmits(["click"]);
|
|
55
65
|
const onClick = () => {
|
|
56
66
|
if (isDisabled.value || !uuids.value.length) {
|
|
57
67
|
return;
|
|
58
68
|
}
|
|
59
|
-
emit("click", selection.
|
|
69
|
+
emit("click", selection.items.value);
|
|
60
70
|
};
|
|
61
71
|
defineCommands(() => ({
|
|
62
72
|
id: "plugin:item_action:" + props.id,
|
|
63
73
|
group: "selection",
|
|
64
74
|
label: props.title,
|
|
65
75
|
icon: props.icon,
|
|
66
|
-
disabled: props.disabled || !selection.
|
|
76
|
+
disabled: props.disabled || !selection.items.value.length,
|
|
67
77
|
callback: onClick
|
|
68
78
|
}));
|
|
69
79
|
defineTourItem(() => {
|
|
@@ -77,10 +87,8 @@ defineTourItem(() => {
|
|
|
77
87
|
element: () => el.value
|
|
78
88
|
};
|
|
79
89
|
});
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
name: "PluginItemAction"
|
|
85
|
-
};
|
|
90
|
+
defineOptions({
|
|
91
|
+
name: "PluginItemAction",
|
|
92
|
+
inheritAttrs: false
|
|
93
|
+
});
|
|
86
94
|
</script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
2
|
-
import type {
|
|
3
|
-
|
|
2
|
+
import type { RenderedFieldListItem } from '#blokkli/types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
4
|
id: string;
|
|
5
5
|
/**
|
|
6
6
|
* The title of the action.
|
|
@@ -27,54 +27,31 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
27
27
|
*/
|
|
28
28
|
multiple?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*/
|
|
32
|
-
weight?: number | string | "last";
|
|
33
|
-
icon?: BlokkliIcon;
|
|
34
|
-
tourText?: string;
|
|
35
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
-
click: (items: DraggableExistingBlock[]) => any;
|
|
37
|
-
}, string, import("vue").PublicProps, Readonly<{
|
|
38
|
-
id: string;
|
|
39
|
-
/**
|
|
40
|
-
* The title of the action.
|
|
41
|
-
*/
|
|
42
|
-
title: string;
|
|
43
|
-
/**
|
|
44
|
-
* Whether the action is disabled.
|
|
45
|
-
*/
|
|
46
|
-
disabled?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Whether the button should be displayed in an active state (e.g. when it's a dropdown).
|
|
30
|
+
* Whether the action is only available in edit mode.
|
|
49
31
|
*/
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* The key code to use for the shortcut.
|
|
53
|
-
*/
|
|
54
|
-
keyCode?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Wheter the shortcut needs the meta modifier key.
|
|
57
|
-
*/
|
|
58
|
-
meta?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Whether the action supports multiple items.
|
|
61
|
-
*/
|
|
62
|
-
multiple?: boolean;
|
|
32
|
+
editOnly?: boolean;
|
|
63
33
|
/**
|
|
64
34
|
* The weight, used for positioning the button.
|
|
65
35
|
*/
|
|
66
|
-
weight?: number | string |
|
|
36
|
+
weight?: number | string | 'last';
|
|
67
37
|
icon?: BlokkliIcon;
|
|
68
38
|
tourText?: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
39
|
+
};
|
|
40
|
+
declare var __VLS_5: {}, __VLS_19: {
|
|
41
|
+
items: RenderedFieldListItem[];
|
|
42
|
+
uuids: string[];
|
|
43
|
+
};
|
|
44
|
+
type __VLS_Slots = {} & {
|
|
45
|
+
icon?: (props: typeof __VLS_5) => any;
|
|
46
|
+
} & {
|
|
47
|
+
default?: (props: typeof __VLS_19) => any;
|
|
48
|
+
};
|
|
49
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
50
|
+
click: (items: RenderedFieldListItem[]) => any;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
52
|
+
onClick?: ((items: RenderedFieldListItem[]) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
54
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
78
55
|
export default _default;
|
|
79
56
|
type __VLS_WithSlots<T, S> = T & {
|
|
80
57
|
new (): {
|
|
@@ -1,21 +1,65 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<Teleport v-if="enabled" to="#bk-blokkli-item-actions-dropdown">
|
|
3
|
-
<div
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<div
|
|
4
|
+
v-show="items.length"
|
|
5
|
+
:style="{
|
|
6
|
+
order: weight
|
|
7
|
+
}"
|
|
8
|
+
>
|
|
9
|
+
<ol>
|
|
10
|
+
<li v-for="item in itemsMapped" :key="item.id">
|
|
11
|
+
<button
|
|
12
|
+
class="bk-blokkli-item-actions-type-dropdown-button"
|
|
13
|
+
:disabled="!item.enabled"
|
|
14
|
+
@click.prevent="onClick(item)"
|
|
15
|
+
>
|
|
16
|
+
<div class="bk-blokkli-item-actions-type-dropdown-icon">
|
|
17
|
+
<Icon v-if="item.icon" :name="item.icon" />
|
|
18
|
+
<ItemIcon v-else-if="item.bundle" :bundle="item.bundle" />
|
|
19
|
+
</div>
|
|
20
|
+
<div>
|
|
21
|
+
<div>{{ item.label }}</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div v-if="item.description" class="bk-tooltip">
|
|
24
|
+
{{ item.description }}
|
|
25
|
+
</div>
|
|
26
|
+
</button>
|
|
27
|
+
</li>
|
|
28
|
+
</ol>
|
|
6
29
|
</div>
|
|
7
30
|
</Teleport>
|
|
8
31
|
</template>
|
|
9
32
|
|
|
10
|
-
<script
|
|
33
|
+
<script>
|
|
34
|
+
import { Icon, ItemIcon } from "#blokkli/components";
|
|
11
35
|
import { computed, useBlokkli, onMounted, onBeforeUnmount } from "#imports";
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<script setup>
|
|
12
39
|
const props = defineProps({
|
|
13
40
|
id: { type: String, required: true },
|
|
14
41
|
title: { type: String, required: true },
|
|
15
|
-
enabled: { type: Boolean, required: true }
|
|
42
|
+
enabled: { type: Boolean, required: true },
|
|
43
|
+
items: { type: Array, required: true },
|
|
44
|
+
icon: { type: null, required: false },
|
|
45
|
+
weight: { type: [String, Number], required: false }
|
|
46
|
+
});
|
|
47
|
+
const emit = defineEmits(["select"]);
|
|
48
|
+
const itemsMapped = computed(() => {
|
|
49
|
+
return props.items.map((item) => {
|
|
50
|
+
return {
|
|
51
|
+
...item,
|
|
52
|
+
icon: item.icon ?? props.icon,
|
|
53
|
+
enabled: item.enabled !== false
|
|
54
|
+
};
|
|
55
|
+
});
|
|
16
56
|
});
|
|
17
57
|
const { eventBus } = useBlokkli();
|
|
18
58
|
const isRendering = computed(() => props.enabled);
|
|
59
|
+
function onClick(item) {
|
|
60
|
+
emit("select", item);
|
|
61
|
+
eventBus.emit("action:selected");
|
|
62
|
+
}
|
|
19
63
|
onMounted(() => {
|
|
20
64
|
eventBus.emit("plugin:mount", {
|
|
21
65
|
type: "ItemDropdown",
|
|
@@ -30,9 +74,3 @@ onBeforeUnmount(() => {
|
|
|
30
74
|
});
|
|
31
75
|
});
|
|
32
76
|
</script>
|
|
33
|
-
|
|
34
|
-
<script>
|
|
35
|
-
export default {
|
|
36
|
-
name: "PluginItemDropdown"
|
|
37
|
-
};
|
|
38
|
-
</script>
|
|
@@ -1,17 +1,31 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
2
|
+
type Item = {
|
|
2
3
|
id: string;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
enabled: boolean;
|
|
9
|
-
}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
10
|
-
default?: ((props: {}) => any) | undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
-
new (): {
|
|
15
|
-
$slots: S;
|
|
16
|
-
};
|
|
4
|
+
label: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
icon?: BlokkliIcon;
|
|
8
|
+
bundle?: string;
|
|
17
9
|
};
|
|
10
|
+
declare const _default: <T extends Item>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
12
|
+
readonly onSelect?: ((item: T) => any) | undefined;
|
|
13
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>, "onSelect"> & {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
items: T[];
|
|
18
|
+
icon?: BlokkliIcon;
|
|
19
|
+
weight?: string | number;
|
|
20
|
+
} & Partial<{}>> & import("vue").PublicProps;
|
|
21
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
22
|
+
attrs: any;
|
|
23
|
+
slots: {};
|
|
24
|
+
emit: (e: "select", item: T) => void;
|
|
25
|
+
}>) => import("vue").VNode & {
|
|
26
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
|
+
};
|
|
28
|
+
export default _default;
|
|
29
|
+
type __VLS_PrettifyLocal<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
@@ -5,7 +5,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
5
5
|
description: string;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
icon?: BlokkliIcon;
|
|
8
|
-
type?: "success" | "danger";
|
|
8
|
+
type?: "success" | "danger" | "yellow";
|
|
9
9
|
weight?: number;
|
|
10
10
|
secondary?: boolean;
|
|
11
11
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -16,13 +16,13 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
16
16
|
description: string;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
icon?: BlokkliIcon;
|
|
19
|
-
type?: "success" | "danger";
|
|
19
|
+
type?: "success" | "danger" | "yellow";
|
|
20
20
|
weight?: number;
|
|
21
21
|
secondary?: boolean;
|
|
22
22
|
}> & Readonly<{
|
|
23
23
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
25
|
-
default?: (
|
|
25
|
+
default?: (props: {}) => any;
|
|
26
26
|
}>;
|
|
27
27
|
export default _default;
|
|
28
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -69,6 +69,7 @@ import {
|
|
|
69
69
|
} from "#imports";
|
|
70
70
|
import { Icon, ViewportBlockingRect, ScrollBoundary } from "#blokkli/components";
|
|
71
71
|
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
72
|
+
import { addElementClasses } from "#blokkli/helpers/addElementClasses";
|
|
72
73
|
const props = defineProps({
|
|
73
74
|
id: { type: String, required: true },
|
|
74
75
|
title: { type: String, required: true },
|
|
@@ -147,13 +148,11 @@ const rootCursor = computed(() => {
|
|
|
147
148
|
watch(rootCursor, (cursor) => {
|
|
148
149
|
document.documentElement.style.cursor = cursor;
|
|
149
150
|
});
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
});
|
|
151
|
+
addElementClasses(
|
|
152
|
+
document.documentElement,
|
|
153
|
+
"bk-is-sidebar-interacting",
|
|
154
|
+
mouseMode
|
|
155
|
+
);
|
|
157
156
|
const updateStored = () => {
|
|
158
157
|
storedData.value = {
|
|
159
158
|
x: x.value,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Icon, ViewportBlockingRect, ScrollBoundary } from '#blokkli/components';
|
|
2
1
|
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
3
2
|
type __VLS_Props = {
|
|
4
3
|
id: string;
|
|
@@ -12,64 +11,16 @@ type __VLS_Props = {
|
|
|
12
11
|
};
|
|
13
12
|
isLeft?: boolean;
|
|
14
13
|
};
|
|
15
|
-
declare function onPointerMove(e: PointerEvent): void;
|
|
16
|
-
declare const isMinimized: import("vue").WritableComputedRef<boolean, boolean>;
|
|
17
|
-
declare const storageKey: import("vue").ComputedRef<string>;
|
|
18
|
-
declare const focusedSidebar: import("vue").WritableComputedRef<string, string>;
|
|
19
|
-
type MouseMode = 'move' | 'resize-right' | 'resize-bottom' | 'resize-bottom-right' | '';
|
|
20
|
-
declare const isResizing: import("vue").ComputedRef<boolean>;
|
|
21
|
-
declare const userWidth: import("vue").Ref<number, number>;
|
|
22
|
-
declare const userHeight: import("vue").Ref<number, number>;
|
|
23
|
-
declare const style: import("vue").ComputedRef<{
|
|
24
|
-
transform: string;
|
|
25
|
-
zIndex: number;
|
|
26
|
-
}>;
|
|
27
|
-
declare const innerStyle: import("vue").ComputedRef<{
|
|
28
|
-
width: string;
|
|
29
|
-
height: string | number;
|
|
30
|
-
}>;
|
|
31
|
-
declare const onFocus: () => void;
|
|
32
|
-
declare const onMouseDown: (e: MouseEvent, mode: MouseMode) => void;
|
|
33
|
-
declare const el: import("vue").Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
34
|
-
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
35
14
|
declare var __VLS_16: {}, __VLS_30: {
|
|
36
15
|
width: number;
|
|
37
16
|
height: number;
|
|
38
17
|
isResizing: boolean;
|
|
39
18
|
};
|
|
40
|
-
type __VLS_Slots =
|
|
19
|
+
type __VLS_Slots = {} & {
|
|
41
20
|
icon?: (props: typeof __VLS_16) => any;
|
|
42
21
|
} & {
|
|
43
22
|
default?: (props: typeof __VLS_30) => any;
|
|
44
|
-
}
|
|
45
|
-
declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
|
|
46
|
-
Icon: typeof Icon;
|
|
47
|
-
ViewportBlockingRect: typeof ViewportBlockingRect;
|
|
48
|
-
ScrollBoundary: typeof ScrollBoundary;
|
|
49
|
-
onPointerMove: typeof onPointerMove;
|
|
50
|
-
isMinimized: typeof isMinimized;
|
|
51
|
-
storageKey: typeof storageKey;
|
|
52
|
-
focusedSidebar: typeof focusedSidebar;
|
|
53
|
-
isResizing: typeof isResizing;
|
|
54
|
-
userWidth: typeof userWidth;
|
|
55
|
-
userHeight: typeof userHeight;
|
|
56
|
-
style: typeof style;
|
|
57
|
-
innerStyle: typeof innerStyle;
|
|
58
|
-
onFocus: typeof onFocus;
|
|
59
|
-
onMouseDown: typeof onMouseDown;
|
|
60
|
-
el: typeof el;
|
|
61
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
62
|
-
close: (...args: any[]) => void;
|
|
63
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
64
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
}>, {
|
|
66
|
-
size: {
|
|
67
|
-
width: number;
|
|
68
|
-
height: number;
|
|
69
|
-
};
|
|
70
|
-
minWidth: number;
|
|
71
|
-
minHeight: number;
|
|
72
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
};
|
|
73
24
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
74
25
|
close: (...args: any[]) => void;
|
|
75
26
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
@@ -130,11 +130,11 @@ const { storage, state, ui, $t } = useBlokkli();
|
|
|
130
130
|
const tourElement = ref(null);
|
|
131
131
|
const detachedKey = computed(() => "sidebar:detached:" + props.id);
|
|
132
132
|
const storageKey = computed(() => "sidebar:active:" + props.region);
|
|
133
|
-
const isDetached = storage.use(detachedKey, false);
|
|
133
|
+
const isDetached = storage.use(detachedKey, false, true);
|
|
134
134
|
const isDisabled = computed(
|
|
135
135
|
() => props.editOnly && state.editMode.value !== "editing" && !props.disabled
|
|
136
136
|
);
|
|
137
|
-
const activeSidebar = storage.use(storageKey, "");
|
|
137
|
+
const activeSidebar = storage.use(storageKey, "", true);
|
|
138
138
|
const isRenderedDetached = computed(
|
|
139
139
|
() => isDetached.value && !ui.isMobile.value
|
|
140
140
|
);
|
|
@@ -166,13 +166,6 @@ const showSidebar = () => {
|
|
|
166
166
|
}
|
|
167
167
|
activeSidebar.value = props.id;
|
|
168
168
|
};
|
|
169
|
-
watch(activeSidebar, (active) => {
|
|
170
|
-
if (active) {
|
|
171
|
-
document.documentElement.classList.add("bk-has-sidebar-" + props.region);
|
|
172
|
-
} else {
|
|
173
|
-
document.documentElement.classList.remove("bk-has-sidebar-" + props.region);
|
|
174
|
-
}
|
|
175
|
-
});
|
|
176
169
|
const sidebarContent = ref(null);
|
|
177
170
|
const scrolledToEnd = ref(false);
|
|
178
171
|
const isOverflowing = ref(false);
|
|
@@ -50,24 +50,30 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
50
50
|
width: number;
|
|
51
51
|
height: number;
|
|
52
52
|
};
|
|
53
|
-
keyCode: string;
|
|
54
53
|
weight: string | number;
|
|
54
|
+
keyCode: string;
|
|
55
55
|
tourText: string;
|
|
56
56
|
minWidth: number;
|
|
57
57
|
minHeight: number;
|
|
58
58
|
region: "left" | "right";
|
|
59
59
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
60
|
-
icon?: (
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
icon?: (props: {}) => any;
|
|
61
|
+
} & {
|
|
62
|
+
badge?: (props: {}) => any;
|
|
63
|
+
} & {
|
|
64
|
+
icon?: (props: {}) => any;
|
|
65
|
+
} & {
|
|
66
|
+
default?: (props: {
|
|
63
67
|
key: string;
|
|
64
68
|
scrolledToEnd: boolean;
|
|
65
69
|
isDetached: true;
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
70
|
+
width: any;
|
|
71
|
+
height: any;
|
|
68
72
|
toggleSidebar: () => void;
|
|
69
|
-
isResizing:
|
|
70
|
-
}) => any
|
|
73
|
+
isResizing: any;
|
|
74
|
+
}) => any;
|
|
75
|
+
} & {
|
|
76
|
+
default?: (props: {
|
|
71
77
|
key: string;
|
|
72
78
|
scrolledToEnd: boolean;
|
|
73
79
|
isDetached: false;
|
|
@@ -75,7 +81,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
75
81
|
height: undefined;
|
|
76
82
|
toggleSidebar: () => void;
|
|
77
83
|
isResizing: boolean;
|
|
78
|
-
}) => any
|
|
84
|
+
}) => any;
|
|
79
85
|
}>;
|
|
80
86
|
export default _default;
|
|
81
87
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -38,7 +38,7 @@ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
|
38
38
|
}> & Readonly<{
|
|
39
39
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
41
|
-
default?: (
|
|
41
|
+
default?: (props: {}) => any;
|
|
42
42
|
}>;
|
|
43
43
|
export default _default;
|
|
44
44
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
6
|
import defineTourItem from "#blokkli/helpers/composables/defineTourItem";
|
|
7
|
-
import { getCurrentInstance } from "#imports";
|
|
7
|
+
import { getCurrentInstance, useBlokkli } from "#imports";
|
|
8
8
|
const props = defineProps({
|
|
9
9
|
id: { type: String, required: true },
|
|
10
10
|
title: { type: String, required: true },
|
|
11
11
|
text: { type: String, required: true },
|
|
12
12
|
selector: { type: String, required: false }
|
|
13
13
|
});
|
|
14
|
+
const { element } = useBlokkli();
|
|
14
15
|
const findElement = (el) => {
|
|
15
16
|
if (el instanceof Text) {
|
|
16
17
|
return findElement(el.nextElementSibling);
|
|
@@ -25,10 +26,14 @@ defineTourItem(() => {
|
|
|
25
26
|
title: props.title,
|
|
26
27
|
text: props.text,
|
|
27
28
|
element: () => {
|
|
28
|
-
const provided = props.selector ?
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
const provided = props.selector ? element.query(
|
|
30
|
+
document.documentElement,
|
|
31
|
+
props.selector,
|
|
32
|
+
`TourItem Plugin: ${props.id}`
|
|
33
|
+
) : void 0;
|
|
34
|
+
const el = provided || findElement(instance?.vnode.el);
|
|
35
|
+
if (el instanceof HTMLElement) {
|
|
36
|
+
return el;
|
|
32
37
|
}
|
|
33
38
|
}
|
|
34
39
|
};
|