refactor: change pkg scope to vue-flow

This commit is contained in:
braks
2022-10-08 23:25:34 +02:00
committed by Braks
parent eb507c8e76
commit 8567e3733b
163 changed files with 288 additions and 288 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background, Controls, MiniMap, VueFlow, isNode, useVueFlow } from '@braks/vue-flow'
import { Background, Controls, MiniMap, VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import { initialElements } from './initial-elements.js'
@@ -1,4 +1,4 @@
import { MarkerType } from '@braks/vue-flow'
import { MarkerType } from '@vue-flow/core'
/**
* You can pass elements together as a v-model value
@@ -1,5 +1,5 @@
<script setup>
import { Background, BackgroundVariant, VueFlow } from '@braks/vue-flow'
import { Background, BackgroundVariant, VueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import CustomConnectionLine from './CustomConnectionLine.vue'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { ConnectionMode, MiniMap, Position, VueFlow, useVueFlow } from '@braks/vue-flow'
import { ConnectionMode, MiniMap, Position, VueFlow, useVueFlow } from '@vue-flow/core'
import { computed, h, onMounted, ref } from 'vue'
import ColorSelectorNode from './CustomNode.vue'
import { presets } from './presets.js'
@@ -1,5 +1,5 @@
<script setup>
import { Handle, Position } from '@braks/vue-flow'
import { Handle, Position } from '@vue-flow/core'
import { computed } from 'vue'
import { presets } from './presets.js'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { VueFlow, useVueFlow } from '@braks/vue-flow'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import Sidebar from './Sidebar.vue'
let id = 0
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background, Controls, MarkerType, MiniMap, VueFlow } from '@braks/vue-flow'
import { Background, Controls, MarkerType, MiniMap, VueFlow } from '@vue-flow/core'
import { h, ref } from 'vue'
import CustomEdge from './CustomEdge.vue'
import CustomEdge2 from './CustomEdge2.vue'
@@ -1,5 +1,5 @@
<script setup>
import { getBezierPath, getEdgeCenter, useVueFlow } from '@braks/vue-flow'
import { getBezierPath, getEdgeCenter, useVueFlow } from '@vue-flow/core'
import { computed } from 'vue'
const props = defineProps({
@@ -1,5 +1,5 @@
<script setup>
import { EdgeText, getBezierPath, getEdgeCenter } from '@braks/vue-flow'
import { EdgeText, getBezierPath, getEdgeCenter } from '@vue-flow/core'
import { computed } from 'vue'
const props = defineProps({
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background, BackgroundVariant, Controls, MiniMap, VueFlow, useVueFlow } from '@braks/vue-flow'
import { Background, BackgroundVariant, Controls, MiniMap, VueFlow, useVueFlow } from '@vue-flow/core'
const { nodes, addNodes, edges, addEdges, onConnect, onPaneReady, onNodeDragStop, dimensions } = useVueFlow()
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Controls, MiniMap, VueFlow, useVueFlow } from '@braks/vue-flow'
import { Controls, MiniMap, VueFlow, useVueFlow } from '@vue-flow/core'
import { ref, watchEffect } from 'vue'
const isHidden = ref(false)
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background, Controls, MiniMap, VueFlow, useVueFlow } from '@braks/vue-flow'
import { Background, Controls, MiniMap, VueFlow, useVueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import { initialElements } from './initial-elements.js'
@@ -1,4 +1,4 @@
import { MarkerType, Position } from '@braks/vue-flow'
import { MarkerType, Position } from '@vue-flow/core'
export const initialElements = [
{
+2 -2
View File
@@ -1,5 +1,5 @@
<script setup>
import { VueFlow } from '@braks/vue-flow'
import { VueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import InteractionControls from './InteractionControls.vue'
@@ -14,7 +14,7 @@ const elements = ref([
</script>
<template>
<VueFlow class="interactionflow" v-model="elements" :fit-view-on-init="true">
<VueFlow v-model="elements" class="interactionflow" :fit-view-on-init="true">
<InteractionControls />
</VueFlow>
</template>
@@ -1,5 +1,5 @@
<script setup>
import { useVueFlow } from '@braks/vue-flow'
import { useVueFlow } from '@vue-flow/core'
import { ref } from 'vue'
const {
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background, VueFlow, isNode } from '@braks/vue-flow'
import { Background, VueFlow, isNode } from '@vue-flow/core'
import { ref } from 'vue'
const elements = ref([
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { Background, ConnectionMode, Controls, MiniMap, VueFlow, useVueFlow } from '@braks/vue-flow'
import { Background, ConnectionMode, Controls, MiniMap, VueFlow, useVueFlow } from '@vue-flow/core'
import { onMounted } from 'vue'
const { onConnect, nodes, edges, addEdges, addNodes } = useVueFlow({
@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { VueFlow } from '@braks/vue-flow'
import { VueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import Controls from './Controls.vue'
@@ -1,5 +1,5 @@
<script setup>
import { useVueFlow } from '@braks/vue-flow'
import { useVueFlow } from '@vue-flow/core'
const flowKey = 'example-flow'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { VueFlow, isNode, useVueFlow } from '@braks/vue-flow'
import { VueFlow, isNode, useVueFlow } from '@vue-flow/core'
import { nextTick, ref } from 'vue'
import { getElements } from './utils.js'
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { VueFlow } from '@braks/vue-flow'
import { VueFlow } from '@vue-flow/core'
import { ref } from 'vue'
import Sidebar from './Sidebar.vue'
import TeleportableNode from './TeleportableNode.vue'
@@ -1,5 +1,5 @@
<script setup>
import { Handle, Position } from '@braks/vue-flow'
import { Handle, Position } from '@vue-flow/core'
import { useTeleport } from './useTransition.js'
const props = defineProps({
@@ -1,4 +1,4 @@
import { getConnectedEdges, useVueFlow } from '@braks/vue-flow'
import { getConnectedEdges, useVueFlow } from '@vue-flow/core'
import { nextTick, ref } from 'vue'
/**
+1 -1
View File
@@ -1,6 +1,6 @@
<script setup>
import { ref } from 'vue'
import { ConnectionMode, Position, VueFlow, useVueFlow } from '@braks/vue-flow'
import { ConnectionMode, Position, VueFlow, useVueFlow } from '@vue-flow/core'
import TransitionEdge from './TransitionEdge.vue'
const elements = ref([
@@ -1,6 +1,6 @@
<script setup>
import { TransitionPresets, useDebounceFn, useTransition, watchDebounced } from '@vueuse/core'
import { getBezierPath, useVueFlow } from '@braks/vue-flow'
import { getBezierPath, useVueFlow } from '@vue-flow/core'
import { computed, ref } from 'vue'
const props = defineProps({
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { ConnectionMode, Controls, VueFlow, addEdge, updateEdge } from '@braks/vue-flow'
import { ConnectionMode, Controls, VueFlow, addEdge, updateEdge } from '@vue-flow/core'
import { ref } from 'vue'
const elements = ref([
+1 -1
View File
@@ -1,5 +1,5 @@
<script setup>
import { VueFlow, useVueFlow } from '@braks/vue-flow'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { reactive } from 'vue'
const defaultLabel = '-'
+2 -2
View File
@@ -1,5 +1,5 @@
<script setup>
import { VueFlow, addEdge } from '@braks/vue-flow'
import { VueFlow, addEdge } from '@vue-flow/core'
import { ref } from 'vue'
import CustomInput from './CustomInput.vue'
import CustomNode from './CustomNode.vue'
@@ -28,8 +28,8 @@ const onConnect = (params) => {
<template>
<VueFlow
class="validationflow"
v-model="elements"
class="validationflow"
@connect="onConnect"
@pane-ready="onLoad"
@connect-start="onConnectStart"
@@ -1,5 +1,5 @@
<script setup>
import { Handle, Position } from '@braks/vue-flow'
import { Handle, Position } from '@vue-flow/core'
const props = defineProps({
isValidTargetPos: {
@@ -1,5 +1,5 @@
<script setup>
import { Handle, Position } from '@braks/vue-flow'
import { Handle, Position } from '@vue-flow/core'
const props = defineProps({
id: {