@blokkli/editor 2.0.0-alpha.23 → 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 +62 -66
- package/dist/runtime/blokkliPlugins/ContextMenu/index.vue +1 -1
- package/dist/runtime/blokkliPlugins/Sidebar/index.vue.d.ts +1 -1
- package/dist/runtime/blokkliPlugins/ToolbarButton/index.vue +5 -1
- 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/index.d.ts +1 -3
- package/dist/runtime/blokkliPlugins/index.js +0 -4
- package/dist/runtime/components/BlokkliProvider.vue.d.ts +1 -1
- package/dist/runtime/components/Edit/Actions/ItemDropdown.vue +1 -1
- package/dist/runtime/components/Edit/Actions/index.vue +77 -72
- 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/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/Dialog/index.vue +26 -5
- package/dist/runtime/components/Edit/Dialog/index.vue.d.ts +2 -0
- package/dist/runtime/components/Edit/EditProvider.vue +48 -31
- 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/AddList/Actions/index.vue.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/AddList/Blocks/index.vue +11 -47
- package/dist/runtime/components/Edit/Features/AddList/Blocks/index.vue.d.ts +5 -0
- package/dist/runtime/components/Edit/Features/AddList/index.vue +68 -123
- 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 +1 -1
- package/dist/runtime/components/Edit/Features/Clipboard/index.vue +52 -18
- 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/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 +8 -97
- package/dist/runtime/components/Edit/Features/DraggingOverlay/Renderer/fragment.glsl +2 -5
- package/dist/runtime/components/Edit/Features/DraggingOverlay/Renderer/index.vue +38 -5
- package/dist/runtime/components/Edit/Features/DraggingOverlay/Renderer/vertex.glsl +10 -1
- package/dist/runtime/components/Edit/Features/DraggingOverlay/index.vue +1 -2
- package/dist/runtime/components/Edit/Features/EditForm/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/EditableField/index.vue +2 -2
- package/dist/runtime/components/Edit/Features/Exit/index.vue +12 -9
- package/dist/runtime/components/Edit/Features/Fragments/index.vue +27 -31
- 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/ReusableDialog/index.vue +1 -0
- package/dist/runtime/components/Edit/Features/Library/index.vue +26 -24
- package/dist/runtime/components/Edit/Features/MultiSelect/Renderer/index.vue +1 -3
- 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/Revert/index.vue +24 -18
- 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/index.vue +3 -6
- 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/index.vue +1 -1
- package/dist/runtime/components/Edit/Features/Translations/index.vue +18 -17
- 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/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/SystemRequirements/index.vue +36 -36
- package/dist/runtime/components/Edit/Toolbar/index.vue +47 -48
- package/dist/runtime/components/Edit/index.d.ts +2 -2
- package/dist/runtime/components/Edit/index.js +2 -2
- package/dist/runtime/css/output.css +1 -1
- 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.js +2 -2
- package/dist/runtime/helpers/composables/defineMenuButton.d.ts +2 -0
- package/dist/runtime/helpers/composables/defineMenuButton.js +10 -0
- package/dist/runtime/helpers/composables/useDialog.d.ts +3 -0
- package/dist/runtime/helpers/composables/useDialog.js +16 -0
- 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 +7 -2
- package/dist/runtime/helpers/dropTargets/index.d.ts +1 -1
- package/dist/runtime/helpers/dropTargets/index.js +17 -3
- package/dist/runtime/helpers/pluginProvider.d.ts +25 -6
- package/dist/runtime/helpers/pluginProvider.js +48 -46
- package/dist/runtime/helpers/providers/blocks.js +10 -0
- package/dist/runtime/helpers/providers/fields.d.ts +9 -1
- package/dist/runtime/helpers/uiProvider.d.ts +9 -12
- package/dist/runtime/helpers/uiProvider.js +85 -83
- package/dist/runtime/icons/click.svg +1 -0
- package/dist/runtime/types/index.d.ts +12 -5
- 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/MenuButton/index.vue +0 -68
- package/dist/runtime/components/Edit/AddListItemIcon/index.vue +0 -19
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="bk-item-icon"
|
|
4
|
+
:class="[
|
|
5
|
+
'bk-is-' + mappedColor,
|
|
6
|
+
{
|
|
7
|
+
'bk-is-small': isSmall
|
|
8
|
+
}
|
|
9
|
+
]"
|
|
10
|
+
>
|
|
11
|
+
<Icon v-if="icon" :name="icon" />
|
|
12
|
+
<ItemIcon v-else-if="bundle" :bundle />
|
|
13
|
+
</div>
|
|
14
|
+
</template>
|
|
15
|
+
|
|
16
|
+
<script setup>
|
|
17
|
+
import { ItemIcon, Icon } from "#blokkli/components";
|
|
18
|
+
import {
|
|
19
|
+
BUNDLE_BLOKKLI_FRAGMENT,
|
|
20
|
+
BUNDLE_FROM_LIBRARY
|
|
21
|
+
} from "#blokkli/constants";
|
|
22
|
+
import { computed } from "#imports";
|
|
23
|
+
const props = defineProps({
|
|
24
|
+
icon: { type: null, required: false, default: void 0 },
|
|
25
|
+
bundle: { type: String, required: false, default: void 0 },
|
|
26
|
+
color: { type: String, required: false, default: void 0 },
|
|
27
|
+
isSmall: { type: Boolean, required: false, default: false }
|
|
28
|
+
});
|
|
29
|
+
const mappedColor = computed(() => {
|
|
30
|
+
if (props.color) {
|
|
31
|
+
return props.color;
|
|
32
|
+
} else if (props.bundle) {
|
|
33
|
+
if (props.bundle === BUNDLE_BLOKKLI_FRAGMENT) {
|
|
34
|
+
return "accent";
|
|
35
|
+
} else if (props.bundle === BUNDLE_FROM_LIBRARY) {
|
|
36
|
+
return "lime";
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return "default";
|
|
40
|
+
});
|
|
41
|
+
</script>
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { BlokkliIcon } from '#blokkli-build/icons';
|
|
2
|
-
|
|
2
|
+
type ItemColor = 'rose' | 'lime' | 'default' | 'yellow' | 'accent';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
icon?: BlokkliIcon;
|
|
5
5
|
bundle?: string;
|
|
6
|
-
color?:
|
|
7
|
-
|
|
6
|
+
color?: ItemColor;
|
|
7
|
+
isSmall?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
10
|
bundle: string;
|
|
11
11
|
icon: BlokkliIcon;
|
|
12
|
-
color:
|
|
13
|
-
|
|
12
|
+
color: ItemColor;
|
|
13
|
+
isSmall: boolean;
|
|
14
14
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
15
|
export default _default;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
</BlokkliTransition>
|
|
6
|
-
</Teleport>
|
|
2
|
+
<BlokkliTransition name="slide-up">
|
|
3
|
+
<Game v-if="isEnabled" @close="isEnabled = false" />
|
|
4
|
+
</BlokkliTransition>
|
|
7
5
|
</template>
|
|
8
6
|
|
|
9
7
|
<script setup>
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
</div>
|
|
27
27
|
<Teleport
|
|
28
28
|
v-if="additional && additional instanceof Error && showDetails"
|
|
29
|
-
to="
|
|
29
|
+
:to="ui.mainLayoutElement.value"
|
|
30
30
|
>
|
|
31
31
|
<DialogModal
|
|
32
|
+
id="messages-error-details"
|
|
32
33
|
title="Error Details"
|
|
33
34
|
hide-buttons
|
|
34
35
|
width="100%"
|
|
@@ -48,13 +49,21 @@
|
|
|
48
49
|
</template>
|
|
49
50
|
|
|
50
51
|
<script setup>
|
|
51
|
-
import {
|
|
52
|
+
import {
|
|
53
|
+
ref,
|
|
54
|
+
onMounted,
|
|
55
|
+
onBeforeUnmount,
|
|
56
|
+
computed,
|
|
57
|
+
watch,
|
|
58
|
+
useBlokkli
|
|
59
|
+
} from "#imports";
|
|
52
60
|
import { Icon, DialogModal } from "#blokkli/components";
|
|
53
61
|
const props = defineProps({
|
|
54
62
|
type: { type: String, required: true },
|
|
55
63
|
message: { type: String, required: true },
|
|
56
64
|
additional: { type: null, required: false }
|
|
57
65
|
});
|
|
66
|
+
const { ui } = useBlokkli();
|
|
58
67
|
const emit = defineEmits(["close"]);
|
|
59
68
|
const hasTimer = ref(true);
|
|
60
69
|
const showDetails = ref(false);
|
|
@@ -16,7 +16,12 @@ import { ref, useBlokkli } from "#imports";
|
|
|
16
16
|
import Item from "./Item/index.vue";
|
|
17
17
|
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
18
18
|
const { ui } = useBlokkli();
|
|
19
|
-
const messages = ref([
|
|
19
|
+
const messages = ref([
|
|
20
|
+
// {
|
|
21
|
+
// type: 'success',
|
|
22
|
+
// message: 'Foobar this is just a message',
|
|
23
|
+
// },
|
|
24
|
+
]);
|
|
20
25
|
function removeMessage(index) {
|
|
21
26
|
messages.value = messages.value.filter((_v, i) => i !== index);
|
|
22
27
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BlokkliTransition name="fade">
|
|
3
|
+
<div
|
|
4
|
+
v-if="isVisible"
|
|
5
|
+
class="bk bk-overlay"
|
|
6
|
+
@click.prevent.stop.capture="onClick"
|
|
7
|
+
@dblclick.prevent="onDoubleClick"
|
|
8
|
+
@wheel.capture.stop.prevent
|
|
9
|
+
@pointerdown.capture.stop.prevent
|
|
10
|
+
@pointermove.capture.stop.prevent
|
|
11
|
+
@touchstart.capture.stop.prevent
|
|
12
|
+
@touchmove.capture.stop.prevent
|
|
13
|
+
@touchend.capture.stop.prevent
|
|
14
|
+
>
|
|
15
|
+
<div
|
|
16
|
+
v-if="showDoubleClickInfo"
|
|
17
|
+
:class="{
|
|
18
|
+
'bk-is-left': alignment === 'right' || alignment === 'center',
|
|
19
|
+
'bk-is-right': alignment === 'left'
|
|
20
|
+
}"
|
|
21
|
+
>
|
|
22
|
+
<Icon name="click" />
|
|
23
|
+
<div v-html="infoText" />
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</BlokkliTransition>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script setup>
|
|
30
|
+
import { BlokkliTransition, Icon } from "#blokkli/components";
|
|
31
|
+
import { computed, useBlokkli, ref, watch } from "#imports";
|
|
32
|
+
const { ui, eventBus, $t } = useBlokkli();
|
|
33
|
+
let clickTimeout = null;
|
|
34
|
+
const showDoubleClickInfo = ref(false);
|
|
35
|
+
const alignment = computed(() => ui.currentDialog.value?.alignment);
|
|
36
|
+
const infoText = computed(
|
|
37
|
+
() => $t(
|
|
38
|
+
"overlayDoubleClickInfo",
|
|
39
|
+
"<strong>Double click</strong> to close overlay"
|
|
40
|
+
)
|
|
41
|
+
);
|
|
42
|
+
function onClick() {
|
|
43
|
+
if (clickTimeout) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
clickTimeout = window.setTimeout(() => {
|
|
47
|
+
showDoubleClickInfo.value = true;
|
|
48
|
+
}, 500);
|
|
49
|
+
}
|
|
50
|
+
const isVisible = computed(() => ui.hasDialogOpen.value);
|
|
51
|
+
watch(isVisible, () => {
|
|
52
|
+
if (clickTimeout) {
|
|
53
|
+
window.clearTimeout(clickTimeout);
|
|
54
|
+
clickTimeout = null;
|
|
55
|
+
}
|
|
56
|
+
showDoubleClickInfo.value = false;
|
|
57
|
+
});
|
|
58
|
+
function onDoubleClick() {
|
|
59
|
+
if (clickTimeout) {
|
|
60
|
+
window.clearTimeout(clickTimeout);
|
|
61
|
+
clickTimeout = null;
|
|
62
|
+
}
|
|
63
|
+
eventBus.emit("overlay:close");
|
|
64
|
+
showDoubleClickInfo.value = false;
|
|
65
|
+
}
|
|
66
|
+
</script>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -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,62 +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 class="bk bk-sidebar-tabs">
|
|
41
|
-
<div id="bk-toolbar-before-sidebar-right" />
|
|
42
|
-
<div
|
|
43
|
-
id="bk-sidebar-tabs-right"
|
|
44
|
-
class="bk-sidebar-container-tabs bk-is-right"
|
|
45
|
-
/>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</BlokkliTransition>
|
|
49
|
-
</Teleport>
|
|
47
|
+
</div>
|
|
50
48
|
</template>
|
|
51
49
|
|
|
52
50
|
<script setup>
|
|
53
51
|
import onBlokkliEvent from "#blokkli/helpers/composables/onBlokkliEvent";
|
|
52
|
+
import { Icon } from "#blokkli/components";
|
|
54
53
|
import { onMounted, useBlokkli, onBeforeUnmount, computed } from "#imports";
|
|
55
|
-
import
|
|
54
|
+
import AppMenu from "./../AppMenu/index.vue";
|
|
56
55
|
const { ui, selection, storage } = useBlokkli();
|
|
57
|
-
|
|
58
|
-
(
|
|
59
|
-
|
|
56
|
+
function openMenu() {
|
|
57
|
+
ui.openDialog({ id: "menu", alignment: "left" });
|
|
58
|
+
}
|
|
60
59
|
const sidebarVisible = computed(() => {
|
|
61
60
|
if (ui.isMobile.value) {
|
|
62
61
|
return !selection.isDragging.value;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
import Banner from './Banner/index.vue.js';
|
|
5
5
|
import BlokkliTransition from './Transition/index.vue.js';
|
|
@@ -33,4 +33,4 @@ import ShortcutIndicator from './ShortcutIndicator/index.vue.js';
|
|
|
33
33
|
import Sortli from './Sortli/index.vue.js';
|
|
34
34
|
import TransitionHeight from './Transition/Height.vue.js';
|
|
35
35
|
import ViewportBlockingRect from './ViewportBlockingRect/index.vue.js';
|
|
36
|
-
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,5 +1,5 @@
|
|
|
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
4
|
import Banner from "./Banner/index.vue";
|
|
5
5
|
import BlokkliTransition from "./Transition/index.vue";
|
|
@@ -35,7 +35,7 @@ import TransitionHeight from "./Transition/Height.vue";
|
|
|
35
35
|
import ViewportBlockingRect from "./ViewportBlockingRect/index.vue";
|
|
36
36
|
export {
|
|
37
37
|
AddListItem,
|
|
38
|
-
|
|
38
|
+
ItemIconBox,
|
|
39
39
|
ArtboardTooltip,
|
|
40
40
|
Banner,
|
|
41
41
|
BlokkliTransition,
|