@blokkli/editor 2.0.0-alpha.22 → 2.0.0-alpha.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +150 -226
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +1 -1
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue +20 -14
- package/dist/runtime/blokkliPlugins/Sidebar/Detached/index.vue.d.ts +8 -4
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue +55 -25
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +5 -4
- package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue +9 -2
- package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue.d.ts +2 -0
- package/dist/runtime/blokkliPlugins/TourItem/index.vue +22 -13
- package/dist/runtime/blokkliPlugins/TourItem/index.vue.d.ts +1 -0
- package/dist/runtime/blokkliPlugins/ViewOption/index.vue +3 -1
- package/dist/runtime/blokkliPlugins/index.d.ts +1 -5
- package/dist/runtime/blokkliPlugins/index.js +0 -8
- package/dist/runtime/components/Blocks/FromLibrary/index.vue +0 -5
- package/dist/runtime/components/BlokkliEditable.vue +6 -1
- package/dist/runtime/components/BlokkliField.vue +1 -1
- package/dist/runtime/components/BlokkliProvider.vue +4 -4
- package/dist/runtime/components/BlokkliProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/Actions/ItemDropdown.vue +66 -0
- package/dist/runtime/components/Edit/Actions/ItemDropdown.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Actions/index.vue +80 -117
- package/dist/runtime/components/Edit/AddListItem/index.vue +8 -29
- package/dist/runtime/components/Edit/AddListItem/index.vue.d.ts +2 -3
- package/dist/runtime/components/Edit/AnimationCanvas/index.vue +23 -68
- package/dist/runtime/components/Edit/AppMenu/MenuButton.vue +39 -0
- package/dist/runtime/{blokkliPlugins/MenuButton/index.vue.d.ts → components/Edit/AppMenu/MenuButton.vue.d.ts} +0 -4
- package/dist/runtime/components/Edit/AppMenu/index.vue +62 -40
- package/dist/runtime/components/Edit/BlockProxy/index.vue +2 -8
- package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue +33 -49
- package/dist/runtime/components/Edit/BlokkliErrorBoundary.vue.d.ts +14 -1
- package/dist/runtime/components/Edit/BlokkliRootErrorBoundary.vue +93 -0
- package/dist/runtime/components/Edit/BlokkliRootErrorBoundary.vue.d.ts +12 -0
- package/dist/runtime/components/Edit/Dialog/index.vue +26 -5
- package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/DraggableList.vue +5 -25
- package/dist/runtime/components/Edit/EditProvider.vue +71 -41
- package/dist/runtime/components/Edit/EditProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/Features/AddList/Actions/Action.vue +52 -0
- package/dist/runtime/components/Edit/Features/AddList/Actions/Action.vue.d.ts +7 -0
- package/dist/runtime/components/Edit/Features/AddList/Actions/index.vue +41 -0
- package/dist/runtime/components/Edit/Features/{Selection/OverlayFallback → AddList/Actions}/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/Features/{BlockAddList → AddList/Blocks}/index.vue +36 -108
- package/dist/runtime/components/Edit/Features/{Hover/Overlay → AddList/Blocks}/index.vue.d.ts +7 -2
- package/dist/runtime/components/Edit/Features/AddList/index.vue +76 -110
- package/dist/runtime/components/Edit/Features/Analyze/{Renderer.vue → Main.vue} +4 -8
- package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/fragment.glsl +10 -6
- package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/index.vue +43 -15
- package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/index.vue.d.ts +0 -2
- package/dist/runtime/components/Edit/Features/Analyze/{Overlay → Renderer}/vertex.glsl +11 -9
- package/dist/runtime/components/Edit/Features/Analyze/Results/ResultsItemNodesTarget.vue +15 -3
- package/dist/runtime/components/Edit/Features/Analyze/index.vue +7 -3
- package/dist/runtime/components/Edit/Features/Anchors/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Artboard/Renderer.vue +41 -20
- package/dist/runtime/components/Edit/Features/Artboard/Scrollbar/index.vue +3 -2
- package/dist/runtime/components/Edit/Features/Assistant/Overlay/index.vue +2 -28
- package/dist/runtime/components/Edit/Features/Assistant/index.vue +18 -14
- package/dist/runtime/components/Edit/Features/BlockScheduler/Dialog/index.vue +1 -0
- package/dist/runtime/components/Edit/Features/BlockScheduler/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Clipboard/List/index.vue +22 -11
- package/dist/runtime/components/Edit/Features/Clipboard/index.vue +70 -29
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Item/index.vue +0 -2
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/Item/index.vue.d.ts +6 -4
- package/dist/runtime/components/Edit/Features/CommandPalette/Palette/index.vue +77 -27
- package/dist/runtime/components/Edit/Features/CommandPalette/index.vue +7 -4
- package/dist/runtime/components/Edit/Features/Comments/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Conversions/index.vue +16 -9
- package/dist/runtime/components/Edit/Features/Debug/DebugSection.vue +24 -0
- package/dist/runtime/components/Edit/Features/Debug/DebugSection.vue.d.ts +16 -0
- package/dist/runtime/components/Edit/Features/Debug/Main.vue +80 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Features.vue +34 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Icons.vue +15 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Icons.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Keyboard.vue +17 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Keyboard.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Logging.vue +66 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Logging.vue.d.ts +6 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Rendering.vue +96 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Rendering.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Selection.vue +25 -0
- package/dist/runtime/components/Edit/Features/Debug/Section/Selection.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Debug/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/DragItem.vue +113 -0
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/DragItem.vue.d.ts +25 -0
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DragItems/index.vue +23 -119
- package/dist/runtime/components/Edit/Features/DraggingOverlay/Renderer/fragment.glsl +77 -0
- package/dist/runtime/components/Edit/Features/DraggingOverlay/{DropTargets → Renderer}/index.vue +138 -92
- package/dist/runtime/components/Edit/Features/DraggingOverlay/{DropTargets → Renderer}/vertex.glsl +60 -8
- package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +4 -5
- package/dist/runtime/components/Edit/Features/EditForm/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/EditableField/Overlay/index.vue +0 -6
- package/dist/runtime/components/Edit/Features/EditableField/index.vue +8 -4
- package/dist/runtime/components/Edit/Features/Exit/index.vue +12 -9
- package/dist/runtime/components/Edit/Features/Fragments/Dialog/Item/index.vue +1 -5
- package/dist/runtime/components/Edit/Features/Fragments/index.vue +27 -31
- package/dist/runtime/components/Edit/Features/Hover/Renderer/fragment.glsl +141 -0
- package/dist/runtime/components/Edit/Features/Hover/{Overlay → Renderer}/index.vue +225 -38
- package/dist/runtime/components/Edit/Features/Hover/Renderer/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/Features/Hover/{Overlay → Renderer}/vertex.glsl +49 -11
- package/dist/runtime/components/Edit/Features/Hover/index.vue +9 -6
- package/dist/runtime/components/Edit/Features/ImportExisting/Dialog/index.vue +1 -0
- package/dist/runtime/components/Edit/Features/ImportExisting/index.vue +25 -24
- package/dist/runtime/components/Edit/Features/Library/EditReusable/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Library/LibraryDialog/Item/index.vue +1 -5
- package/dist/runtime/components/Edit/Features/Library/ReusableDialog/index.vue +1 -0
- package/dist/runtime/components/Edit/Features/Library/index.vue +50 -36
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/Item.vue +1 -1
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue +26 -13
- package/dist/runtime/components/Edit/Features/MediaLibrary/Library/index.vue.d.ts +0 -1
- package/dist/runtime/components/Edit/Features/MediaLibrary/index.vue +3 -47
- package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/fragment.glsl +13 -26
- package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/index.vue +131 -75
- package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/index.vue.d.ts +0 -1
- package/dist/runtime/components/Edit/Features/MultiSelect/{Overlay → Renderer}/vertex.glsl +27 -2
- package/dist/runtime/components/Edit/Features/MultiSelect/index.vue +25 -12
- package/dist/runtime/components/Edit/Features/Ownership/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/PreviewGrant/index.vue +2 -1
- package/dist/runtime/components/Edit/Features/Publish/Dialog/index.vue +1 -0
- package/dist/runtime/components/Edit/Features/Publish/index.vue +17 -15
- package/dist/runtime/components/Edit/Features/ResponsivePreview/index.vue +1 -1
- package/dist/runtime/components/Edit/Features/Revert/index.vue +24 -18
- package/dist/runtime/components/Edit/Features/Search/Overlay/Results/Content/index.vue +23 -6
- package/dist/runtime/components/Edit/Features/Search/index.vue +1 -1
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue +21 -17
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Overlay/index.vue.d.ts +6 -6
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/fragment.glsl +19 -17
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/index.vue +242 -131
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/Renderer/vertex.glsl +29 -12
- package/dist/runtime/components/Edit/Features/Selection/AddButtons/index.vue +15 -10
- package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/fragment.glsl +23 -14
- package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/index.vue +121 -28
- package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/index.vue.d.ts +0 -2
- package/dist/runtime/components/Edit/Features/Selection/{Overlay → Renderer}/vertex.glsl +23 -14
- package/dist/runtime/components/Edit/Features/Selection/index.vue +46 -59
- package/dist/runtime/components/Edit/Features/Settings/Dialog/index.vue +1 -0
- package/dist/runtime/components/Edit/Features/Settings/index.vue +25 -17
- package/dist/runtime/components/Edit/Features/TouchActionBar/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Tour/Overlay/index.vue +1 -1
- package/dist/runtime/components/Edit/Features/Tour/Popup/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Tour/index.vue +12 -10
- package/dist/runtime/components/Edit/Features/Transform/Dialog/index.vue +5 -5
- package/dist/runtime/components/Edit/Features/Transform/index.vue +30 -23
- package/dist/runtime/components/Edit/Features/Translations/index.vue +18 -17
- package/dist/runtime/components/Edit/Form/Checkboxes/index.vue +43 -0
- package/dist/runtime/components/Edit/Form/Checkboxes/index.vue.d.ts +20 -0
- package/dist/runtime/components/Edit/FormOverlay/index.vue +13 -4
- package/dist/runtime/components/Edit/ItemIconBox/index.vue +41 -0
- package/dist/runtime/components/Edit/{AddListItemIcon → ItemIconBox}/index.vue.d.ts +5 -5
- package/dist/runtime/components/Edit/Konami/Game/index.vue +0 -1
- package/dist/runtime/components/Edit/Konami/index.vue +3 -5
- package/dist/runtime/components/Edit/Messages/Item/index.vue +11 -2
- package/dist/runtime/components/Edit/Messages/Item/index.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/Messages/index.vue +6 -1
- package/dist/runtime/components/Edit/Overlay/index.vue +66 -0
- package/dist/runtime/components/Edit/Overlay/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/PreviewProvider.vue +1 -1
- package/dist/runtime/components/Edit/Sortli/index.vue +5 -8
- package/dist/runtime/components/Edit/Sortli/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/SystemRequirements/index.vue +36 -36
- package/dist/runtime/components/Edit/Toolbar/index.vue +47 -51
- package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue +9 -2
- package/dist/runtime/components/Edit/ViewportBlockingRect/index.vue.d.ts +4 -1
- package/dist/runtime/components/Edit/index.d.ts +7 -5
- package/dist/runtime/components/Edit/index.js +13 -9
- package/dist/runtime/css/output.css +1 -1
- package/dist/runtime/helpers/animationProvider.d.ts +58 -9
- package/dist/runtime/helpers/animationProvider.js +318 -75
- package/dist/runtime/helpers/composables/defineAddAction.d.ts +2 -0
- package/dist/runtime/helpers/composables/defineAddAction.js +10 -0
- package/dist/runtime/helpers/composables/defineItemDropdownAction.d.ts +2 -0
- package/dist/runtime/helpers/composables/defineItemDropdownAction.js +10 -0
- package/dist/runtime/helpers/composables/defineMenuButton.d.ts +2 -0
- package/dist/runtime/helpers/composables/defineMenuButton.js +10 -0
- package/dist/runtime/helpers/composables/defineRenderer.d.ts +5 -2
- package/dist/runtime/helpers/composables/defineRenderer.js +3 -2
- package/dist/runtime/helpers/composables/useDialog.d.ts +3 -0
- package/dist/runtime/helpers/composables/useDialog.js +16 -0
- package/dist/runtime/helpers/composables/useGlobalBlokkliObject.d.ts +16 -0
- package/dist/runtime/helpers/composables/useGlobalBlokkliObject.js +36 -0
- package/dist/runtime/helpers/debugProvider.d.ts +13 -3
- package/dist/runtime/helpers/debugProvider.js +80 -12
- package/dist/runtime/helpers/defineElementStyle.d.ts +2 -0
- package/dist/runtime/helpers/defineElementStyle.js +33 -0
- package/dist/runtime/helpers/domProvider.d.ts +1 -0
- package/dist/runtime/helpers/domProvider.js +51 -32
- package/dist/runtime/helpers/dropTargets/index.d.ts +1 -1
- package/dist/runtime/helpers/dropTargets/index.js +18 -4
- package/dist/runtime/helpers/eventBus.d.ts +1 -1
- package/dist/runtime/helpers/index.d.ts +1 -6
- package/dist/runtime/helpers/index.js +0 -81
- package/dist/runtime/helpers/pluginProvider.d.ts +38 -3
- package/dist/runtime/helpers/pluginProvider.js +49 -18
- package/dist/runtime/helpers/providers/blocks.js +10 -0
- package/dist/runtime/helpers/providers/directive.d.ts +4 -1
- package/dist/runtime/helpers/providers/directive.js +9 -2
- package/dist/runtime/helpers/providers/fields.d.ts +9 -1
- package/dist/runtime/helpers/stateProvider.js +1 -0
- package/dist/runtime/helpers/uiProvider.d.ts +13 -12
- package/dist/runtime/helpers/uiProvider.js +117 -81
- package/dist/runtime/helpers/webgl/index.d.ts +2 -3
- package/dist/runtime/helpers/webgl/index.js +9 -14
- package/dist/runtime/icons/click.svg +1 -0
- package/dist/runtime/icons/dock-left.svg +1 -0
- package/dist/runtime/icons/dock-right.svg +1 -0
- package/dist/runtime/icons/dock-window.svg +1 -0
- package/dist/runtime/plugins/blokkliDirectives.js +1 -1
- package/dist/runtime/types/index.d.ts +16 -26
- package/package.json +1 -1
- package/dist/runtime/blokkliPlugins/AddAction/index.vue +0 -96
- package/dist/runtime/blokkliPlugins/AddAction/index.vue.d.ts +0 -26
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue +0 -56
- package/dist/runtime/blokkliPlugins/DroppableEdit/index.vue.d.ts +0 -24
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue +0 -76
- package/dist/runtime/blokkliPlugins/ItemDropdown/index.vue.d.ts +0 -31
- package/dist/runtime/blokkliPlugins/MenuButton/index.vue +0 -66
- package/dist/runtime/components/Edit/AddListItemIcon/index.vue +0 -19
- package/dist/runtime/components/Edit/Features/BlockAddList/docs.md +0 -15
- package/dist/runtime/components/Edit/Features/Debug/Renderer.vue +0 -240
- package/dist/runtime/components/Edit/Features/DraggingOverlay/DropTargets/fragment.glsl +0 -96
- package/dist/runtime/components/Edit/Features/Hover/Overlay/fragment.glsl +0 -139
- package/dist/runtime/components/Edit/Features/Selection/OverlayFallback/index.vue +0 -42
- /package/dist/runtime/components/Edit/Features/Analyze/{Renderer.vue.d.ts → Main.vue.d.ts} +0 -0
- /package/dist/runtime/components/Edit/Features/Anchors/{Renderer.vue → Overlay/index.vue} +0 -0
- /package/dist/runtime/components/Edit/Features/{BlockAddList → Anchors/Overlay}/index.vue.d.ts +0 -0
- /package/dist/runtime/components/Edit/Features/Debug/{Renderer.vue.d.ts → Main.vue.d.ts} +0 -0
- /package/dist/runtime/components/Edit/Features/{Anchors/Renderer.vue.d.ts → Debug/Section/Features.vue.d.ts} +0 -0
- /package/dist/runtime/components/Edit/Features/DraggingOverlay/{DropTargets → Renderer}/index.vue.d.ts +0 -0
- /package/dist/runtime/components/Edit/Features/Ownership/{Renderer.vue → Banner/index.vue} +0 -0
- /package/dist/runtime/components/Edit/Features/Ownership/{Renderer.vue.d.ts → Banner/index.vue.d.ts} +0 -0
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
<BlokkliTransition name="slide-up">
|
|
3
|
+
<DialogModal
|
|
4
|
+
v-if="showDialog"
|
|
5
|
+
id="system-requirements"
|
|
6
|
+
:title="$t('systemRequirementsDialogTitle', 'System Requirements')"
|
|
7
|
+
:width="700"
|
|
8
|
+
:submit-label="$t('systemRequirementsDialogButton', 'Continue anyway')"
|
|
9
|
+
:lead="
|
|
9
10
|
$t(
|
|
10
11
|
'systemRequirementsDialogLead',
|
|
11
12
|
'bl\xF6kkli has detected that your browser does not meet one or more system requirements. For the best experience, please use a browser that supports all the listed requirements.'
|
|
12
13
|
)
|
|
13
14
|
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
15
|
+
icon="sad"
|
|
16
|
+
@submit="dismiss"
|
|
17
|
+
@cancel="dismiss"
|
|
18
|
+
>
|
|
19
|
+
<ul class="bk-system-requirements">
|
|
20
|
+
<li
|
|
21
|
+
v-for="requirement in requirements"
|
|
22
|
+
:key="requirement.id"
|
|
23
|
+
:class="{
|
|
23
24
|
'bk-is-success': requirement.supported === true,
|
|
24
25
|
'bk-is-error': requirement.supported === false,
|
|
25
26
|
'bk-is-warning': requirement.supported === null
|
|
26
27
|
}"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
>
|
|
29
|
+
<div>
|
|
30
|
+
<h3>
|
|
31
|
+
<span>{{ requirement.title }}</span>
|
|
32
|
+
<div class="bk-system-requirements-icon">
|
|
33
|
+
<Icon :name="requirement.supported ? 'check' : 'close'" />
|
|
34
|
+
</div>
|
|
35
|
+
</h3>
|
|
36
|
+
<p>{{ requirement.description }}</p>
|
|
37
|
+
</div>
|
|
38
|
+
</li>
|
|
39
|
+
</ul>
|
|
39
40
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
<p>
|
|
42
|
+
{{
|
|
43
|
+
$t(
|
|
43
44
|
"systemRequirementsDialogText",
|
|
44
45
|
"bl\xF6kkli has been tested and optimized for the latest versions of Chrome, Firefox, Edge, and Safari. Features like WebGL are well supported, but they may sometimes be disabled for performance or security reasons."
|
|
45
46
|
)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</Teleport>
|
|
47
|
+
}}
|
|
48
|
+
</p>
|
|
49
|
+
</DialogModal>
|
|
50
|
+
</BlokkliTransition>
|
|
51
51
|
</template>
|
|
52
52
|
|
|
53
53
|
<script setup>
|
|
@@ -1,65 +1,61 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<div
|
|
3
|
+
v-show="activeSidebarLeft && sidebarVisible"
|
|
4
|
+
id="bk-sidebar-content-left"
|
|
5
|
+
class="bk-sidebar bk-is-left"
|
|
6
|
+
:class="{ 'bk-is-hidden': !sidebarVisible }"
|
|
7
|
+
/>
|
|
8
|
+
|
|
9
|
+
<div
|
|
10
|
+
v-show="activeSidebarRight"
|
|
11
|
+
id="bk-sidebar-content-right"
|
|
12
|
+
class="bk-sidebar bk-is-right"
|
|
13
|
+
:class="{ 'bk-is-hidden': !sidebarVisible }"
|
|
14
|
+
/>
|
|
15
|
+
|
|
16
|
+
<AppMenu />
|
|
17
|
+
|
|
18
|
+
<div class="bk bk-toolbar" @touchstart.stop.passive @touchmove.stop.passive>
|
|
19
|
+
<div class="bk bk-toolbar-menu">
|
|
20
|
+
<button class="bk-toolbar-menu-button" @click.prevent.stop="openMenu">
|
|
21
|
+
<Icon name="menu" />
|
|
22
|
+
</button>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="bk-toolbar-container">
|
|
25
|
+
<div
|
|
26
|
+
id="bk-sidebar-tabs-left"
|
|
27
|
+
class="bk-sidebar-container-tabs bk-is-left"
|
|
28
|
+
/>
|
|
29
|
+
</div>
|
|
30
|
+
<div id="bk-toolbar-after-menu" class="bk-toolbar-container" />
|
|
31
|
+
<div id="bk-toolbar-before-title" class="bk-toolbar-container" />
|
|
32
|
+
<div id="bk-toolbar-title" class="bk-toolbar-container" />
|
|
33
|
+
<div id="bk-toolbar-after-title" class="bk-toolbar-container" />
|
|
34
|
+
<div id="bk-toolbar-view-options" class="bk-toolbar-container" />
|
|
3
35
|
<div
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class="bk-sidebar bk-is-left"
|
|
7
|
-
:class="{ 'bk-is-hidden': !sidebarVisible }"
|
|
36
|
+
id="bk-toolbar-before-sidebar"
|
|
37
|
+
class="bk-sidebar-container-tabs bk-toolbar-container"
|
|
8
38
|
/>
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div class="bk bk-sidebar-tabs">
|
|
42
|
+
<div id="bk-toolbar-before-sidebar-right" />
|
|
9
43
|
<div
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class="bk-sidebar bk-is-right"
|
|
13
|
-
:class="{ 'bk-is-hidden': !sidebarVisible }"
|
|
44
|
+
id="bk-sidebar-tabs-right"
|
|
45
|
+
class="bk-sidebar-container-tabs bk-is-right"
|
|
14
46
|
/>
|
|
15
|
-
|
|
16
|
-
<BlokkliTransition name="toolbar">
|
|
17
|
-
<div v-show="showToolbar" class="bk bk-top">
|
|
18
|
-
<div
|
|
19
|
-
class="bk-toolbar bk-control"
|
|
20
|
-
@touchstart.stop.passive
|
|
21
|
-
@touchmove.stop.passive
|
|
22
|
-
>
|
|
23
|
-
<div id="bk-toolbar-menu" class="bk-toolbar-area bk-is-menu" />
|
|
24
|
-
<div class="bk-toolbar-container bk-is-sidebar">
|
|
25
|
-
<div
|
|
26
|
-
id="bk-sidebar-tabs-left"
|
|
27
|
-
class="bk-sidebar-container-tabs bk-is-left"
|
|
28
|
-
/>
|
|
29
|
-
</div>
|
|
30
|
-
<div id="bk-toolbar-after-menu" class="bk-toolbar-container" />
|
|
31
|
-
<div id="bk-toolbar-before-title" class="bk-toolbar-container" />
|
|
32
|
-
<div id="bk-toolbar-title" class="bk-toolbar-container" />
|
|
33
|
-
<div id="bk-toolbar-after-title" class="bk-toolbar-container" />
|
|
34
|
-
<div id="bk-toolbar-view-options" class="bk-toolbar-container" />
|
|
35
|
-
<div
|
|
36
|
-
id="bk-toolbar-before-sidebar"
|
|
37
|
-
class="bk-sidebar-container-tabs bk-toolbar-container"
|
|
38
|
-
/>
|
|
39
|
-
</div>
|
|
40
|
-
<div
|
|
41
|
-
class="bk bk-sidebar-tabs"
|
|
42
|
-
:class="{ 'bk-has-sidebar-open': activeSidebarRight }"
|
|
43
|
-
>
|
|
44
|
-
<div id="bk-toolbar-before-sidebar-right" />
|
|
45
|
-
<div
|
|
46
|
-
id="bk-sidebar-tabs-right"
|
|
47
|
-
class="bk-sidebar-container-tabs bk-is-right"
|
|
48
|
-
/>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
</BlokkliTransition>
|
|
52
|
-
</Teleport>
|
|
47
|
+
</div>
|
|
53
48
|
</template>
|
|
54
49
|
|
|
55
50
|
<script setup>
|
|
56
51
|
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
52
|
+
import { Icon } from "#blokkli/components";
|
|
57
53
|
import { onMounted, useBlokkli, onBeforeUnmount, computed } from "#imports";
|
|
58
|
-
import
|
|
54
|
+
import AppMenu from "./../AppMenu/index.vue";
|
|
59
55
|
const { ui, selection, storage } = useBlokkli();
|
|
60
|
-
|
|
61
|
-
(
|
|
62
|
-
|
|
56
|
+
function openMenu() {
|
|
57
|
+
ui.openDialog({ id: "menu", alignment: "left" });
|
|
58
|
+
}
|
|
63
59
|
const sidebarVisible = computed(() => {
|
|
64
60
|
if (ui.isMobile.value) {
|
|
65
61
|
return !selection.isDragging.value;
|
|
@@ -12,7 +12,8 @@ import {
|
|
|
12
12
|
computed,
|
|
13
13
|
onMounted,
|
|
14
14
|
onBeforeUnmount,
|
|
15
|
-
watch
|
|
15
|
+
watch,
|
|
16
|
+
useTemplateRef
|
|
16
17
|
} from "#imports";
|
|
17
18
|
const props = defineProps({
|
|
18
19
|
id: { type: String, required: true }
|
|
@@ -30,7 +31,13 @@ const rect = computed(() => {
|
|
|
30
31
|
height: height.value
|
|
31
32
|
};
|
|
32
33
|
});
|
|
33
|
-
const el =
|
|
34
|
+
const el = useTemplateRef("el");
|
|
35
|
+
function getRootElement() {
|
|
36
|
+
return el.value;
|
|
37
|
+
}
|
|
38
|
+
defineExpose({
|
|
39
|
+
getRootElement
|
|
40
|
+
});
|
|
34
41
|
useAnimationFrame(() => {
|
|
35
42
|
if (!el.value) {
|
|
36
43
|
return;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
2
|
id: string;
|
|
3
3
|
};
|
|
4
|
+
declare function getRootElement(): HTMLElement | null;
|
|
4
5
|
declare var __VLS_1: {};
|
|
5
6
|
type __VLS_Slots = {} & {
|
|
6
7
|
default?: (props: typeof __VLS_1) => any;
|
|
7
8
|
};
|
|
8
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
10
|
+
getRootElement: typeof getRootElement;
|
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
12
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
10
13
|
export default _default;
|
|
11
14
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import AddListItem from './AddListItem/index.vue.js';
|
|
2
|
-
import
|
|
2
|
+
import ItemIconBox from './ItemIconBox/index.vue.js';
|
|
3
3
|
import ArtboardTooltip from './ArtboardTooltip/index.vue.js';
|
|
4
|
+
import Banner from './Banner/index.vue.js';
|
|
4
5
|
import BlokkliTransition from './Transition/index.vue.js';
|
|
5
|
-
import TransitionHeight from './Transition/Height.vue.js';
|
|
6
6
|
import ConfigForm from './PluginConfigForm/index.vue.js';
|
|
7
7
|
import DialogModal from './Dialog/index.vue.js';
|
|
8
8
|
import DiffViewerState from './DiffViewer/State.vue.js';
|
|
9
|
+
import ErrorBoundary from './BlokkliErrorBoundary.vue.js';
|
|
10
|
+
import FormCheckboxes from './Form/Checkboxes/index.vue.js';
|
|
9
11
|
import FormDatepicker from './Form/Datepicker/index.vue.js';
|
|
10
12
|
import FormGroup from './Form/Group/index.vue.js';
|
|
11
13
|
import FormItem from './Form/Item/index.vue.js';
|
|
@@ -25,10 +27,10 @@ import Pagination from './Pagination/index.vue.js';
|
|
|
25
27
|
import RelativeTime from './RelativeTime/index.vue.js';
|
|
26
28
|
import Resizable from './Resizable/index.vue.js';
|
|
27
29
|
import ScaleToFit from './ScaleToFit/index.vue.js';
|
|
30
|
+
import ScheduleDate from './ScheduleDate/index.vue.js';
|
|
28
31
|
import ScrollBoundary from './ScrollBoundary/index.vue.js';
|
|
29
32
|
import ShortcutIndicator from './ShortcutIndicator/index.vue.js';
|
|
30
33
|
import Sortli from './Sortli/index.vue.js';
|
|
31
|
-
import
|
|
32
|
-
import ScheduleDate from './ScheduleDate/index.vue.js';
|
|
34
|
+
import TransitionHeight from './Transition/Height.vue.js';
|
|
33
35
|
import ViewportBlockingRect from './ViewportBlockingRect/index.vue.js';
|
|
34
|
-
export { AddListItem,
|
|
36
|
+
export { AddListItem, ItemIconBox, ArtboardTooltip, Banner, BlokkliTransition, ConfigForm, DialogModal, DiffViewerState, ErrorBoundary, FormCheckboxes, FormDatepicker, FormGroup, FormItem, FormOverlay, FormRadio, FormRadioTabs, FormSelect, FormText, FormTextarea, FormToggle, Highlight, Icon, InfoBox, ItemIcon, Loading, Pagination, RelativeTime, Resizable, ScaleToFit, ScheduleDate, ScrollBoundary, ShortcutIndicator, Sortli, TransitionHeight, ViewportBlockingRect, };
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import AddListItem from "./AddListItem/index.vue";
|
|
2
|
-
import
|
|
2
|
+
import ItemIconBox from "./ItemIconBox/index.vue";
|
|
3
3
|
import ArtboardTooltip from "./ArtboardTooltip/index.vue";
|
|
4
|
+
import Banner from "./Banner/index.vue";
|
|
4
5
|
import BlokkliTransition from "./Transition/index.vue";
|
|
5
|
-
import TransitionHeight from "./Transition/Height.vue";
|
|
6
6
|
import ConfigForm from "./PluginConfigForm/index.vue";
|
|
7
7
|
import DialogModal from "./Dialog/index.vue";
|
|
8
8
|
import DiffViewerState from "./DiffViewer/State.vue";
|
|
9
|
+
import ErrorBoundary from "./BlokkliErrorBoundary.vue";
|
|
10
|
+
import FormCheckboxes from "./Form/Checkboxes/index.vue";
|
|
9
11
|
import FormDatepicker from "./Form/Datepicker/index.vue";
|
|
10
12
|
import FormGroup from "./Form/Group/index.vue";
|
|
11
13
|
import FormItem from "./Form/Item/index.vue";
|
|
@@ -25,20 +27,23 @@ import Pagination from "./Pagination/index.vue";
|
|
|
25
27
|
import RelativeTime from "./RelativeTime/index.vue";
|
|
26
28
|
import Resizable from "./Resizable/index.vue";
|
|
27
29
|
import ScaleToFit from "./ScaleToFit/index.vue";
|
|
30
|
+
import ScheduleDate from "./ScheduleDate/index.vue";
|
|
28
31
|
import ScrollBoundary from "./ScrollBoundary/index.vue";
|
|
29
32
|
import ShortcutIndicator from "./ShortcutIndicator/index.vue";
|
|
30
33
|
import Sortli from "./Sortli/index.vue";
|
|
31
|
-
import
|
|
32
|
-
import ScheduleDate from "./ScheduleDate/index.vue";
|
|
34
|
+
import TransitionHeight from "./Transition/Height.vue";
|
|
33
35
|
import ViewportBlockingRect from "./ViewportBlockingRect/index.vue";
|
|
34
36
|
export {
|
|
35
37
|
AddListItem,
|
|
36
|
-
|
|
38
|
+
ItemIconBox,
|
|
37
39
|
ArtboardTooltip,
|
|
40
|
+
Banner,
|
|
38
41
|
BlokkliTransition,
|
|
39
42
|
ConfigForm,
|
|
40
43
|
DialogModal,
|
|
41
44
|
DiffViewerState,
|
|
45
|
+
ErrorBoundary,
|
|
46
|
+
FormCheckboxes,
|
|
42
47
|
FormDatepicker,
|
|
43
48
|
FormGroup,
|
|
44
49
|
FormItem,
|
|
@@ -58,11 +63,10 @@ export {
|
|
|
58
63
|
RelativeTime,
|
|
59
64
|
Resizable,
|
|
60
65
|
ScaleToFit,
|
|
66
|
+
ScheduleDate,
|
|
61
67
|
ScrollBoundary,
|
|
62
68
|
ShortcutIndicator,
|
|
63
69
|
Sortli,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
ScheduleDate,
|
|
67
|
-
TransitionHeight
|
|
70
|
+
TransitionHeight,
|
|
71
|
+
ViewportBlockingRect
|
|
68
72
|
};
|