fix: add compatConfig to all components
This commit is contained in:
@@ -49,6 +49,7 @@ const d = computed(
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Background',
|
name: 'Background',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'ControlButton',
|
name: 'ControlButton',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ const onInteractiveChangeHandler = () => {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Controls',
|
name: 'Controls',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,12 @@ const ariaLiveStyle: CSSProperties = {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div :id="`${ARIA_NODE_DESC_KEY}-${id}`" style="display: none">
|
<div :id="`${ARIA_NODE_DESC_KEY}-${id}`" style="display: none">
|
||||||
Press enter or space to select a node.
|
Press enter or space to select a node.
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ const dAttr = computed(() => {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'ConnectionLine',
|
name: 'ConnectionLine',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -71,5 +71,6 @@ BaseEdge.props = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
BaseEdge.inheritAttrs = false
|
BaseEdge.inheritAttrs = false
|
||||||
|
BaseEdge.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default BaseEdge
|
export default BaseEdge
|
||||||
|
|||||||
@@ -42,5 +42,6 @@ BezierEdge.props = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
BezierEdge.inheritAttrs = false
|
BezierEdge.inheritAttrs = false
|
||||||
|
BezierEdge.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default BezierEdge
|
export default BezierEdge
|
||||||
|
|||||||
@@ -46,5 +46,6 @@ const EdgeAnchor: FunctionalComponent<Props> = function ({ radius = 10, centerX
|
|||||||
}
|
}
|
||||||
|
|
||||||
EdgeAnchor.props = ['radius', 'centerX', 'centerY', 'position']
|
EdgeAnchor.props = ['radius', 'centerX', 'centerY', 'position']
|
||||||
|
EdgeAnchor.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default EdgeAnchor
|
export default EdgeAnchor
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ const teleportTarget = computed(() => viewportRef.value?.getElementsByClassName(
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'EdgeLabelRenderer',
|
name: 'EdgeLabelRenderer',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ function getBox() {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'EdgeText',
|
name: 'EdgeText',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ interface Props {
|
|||||||
|
|
||||||
const EdgeWrapper = defineComponent({
|
const EdgeWrapper = defineComponent({
|
||||||
name: 'Edge',
|
name: 'Edge',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
props: ['name', 'type', 'id', 'updatable', 'selectable', 'focusable', 'edge'],
|
props: ['name', 'type', 'id', 'updatable', 'selectable', 'focusable', 'edge'],
|
||||||
setup(props: Props) {
|
setup(props: Props) {
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -41,5 +41,6 @@ SimpleBezierEdge.props = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
SimpleBezierEdge.inheritAttrs = false
|
SimpleBezierEdge.inheritAttrs = false
|
||||||
|
SimpleBezierEdge.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default SimpleBezierEdge
|
export default SimpleBezierEdge
|
||||||
|
|||||||
@@ -43,5 +43,6 @@ SmoothStepEdge.props = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
SmoothStepEdge.inheritAttrs = false
|
SmoothStepEdge.inheritAttrs = false
|
||||||
|
SmoothStepEdge.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default SmoothStepEdge
|
export default SmoothStepEdge
|
||||||
|
|||||||
@@ -25,5 +25,6 @@ StepEdge.props = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
StepEdge.inheritAttrs = false
|
StepEdge.inheritAttrs = false
|
||||||
|
StepEdge.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default StepEdge
|
export default StepEdge
|
||||||
|
|||||||
@@ -31,5 +31,6 @@ StraightEdge.props = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
StraightEdge.inheritAttrs = false
|
StraightEdge.inheritAttrs = false
|
||||||
|
StraightEdge.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default StraightEdge
|
export default StraightEdge
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ onMounted(() => {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Handle',
|
name: 'Handle',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -20,5 +20,6 @@ const DefaultNode: FunctionalComponent<NodeProps> = function ({
|
|||||||
|
|
||||||
DefaultNode.props = ['sourcePosition', 'targetPosition', 'label', 'isValidTargetPos', 'isValidSourcePos', 'connectable']
|
DefaultNode.props = ['sourcePosition', 'targetPosition', 'label', 'isValidTargetPos', 'isValidSourcePos', 'connectable']
|
||||||
DefaultNode.inheritAttrs = false
|
DefaultNode.inheritAttrs = false
|
||||||
|
DefaultNode.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default DefaultNode
|
export default DefaultNode
|
||||||
|
|||||||
@@ -17,5 +17,6 @@ const InputNode: FunctionalComponent<NodeProps> = function ({
|
|||||||
|
|
||||||
InputNode.props = ['sourcePosition', 'label', 'isValidSourcePos', 'connectable']
|
InputNode.props = ['sourcePosition', 'label', 'isValidSourcePos', 'connectable']
|
||||||
InputNode.inheritAttrs = false
|
InputNode.inheritAttrs = false
|
||||||
|
InputNode.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default InputNode
|
export default InputNode
|
||||||
|
|||||||
@@ -242,6 +242,7 @@ function onKeyDown(event: KeyboardEvent) {
|
|||||||
export default {
|
export default {
|
||||||
name: 'Node',
|
name: 'Node',
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -17,5 +17,6 @@ const OutputNode: FunctionalComponent<NodeProps> = function ({
|
|||||||
|
|
||||||
OutputNode.props = ['targetPosition', 'label', 'isValidTargetPos', 'connectable']
|
OutputNode.props = ['targetPosition', 'label', 'isValidTargetPos', 'connectable']
|
||||||
OutputNode.inheritAttrs = false
|
OutputNode.inheritAttrs = false
|
||||||
|
OutputNode.compatConfig = { MODE: 3 }
|
||||||
|
|
||||||
export default OutputNode
|
export default OutputNode
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ function onKeyDown(event: KeyboardEvent) {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'NodesSelection',
|
name: 'NodesSelection',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { PanelProps } from '../../types'
|
import type { PanelProps } from '../../types/panel'
|
||||||
|
|
||||||
const props = defineProps<PanelProps>()
|
const props = defineProps<PanelProps>()
|
||||||
|
|
||||||
@@ -8,6 +8,13 @@ const { userSelectionActive } = useVueFlow()
|
|||||||
const positionClasses = computed(() => `${props.position}`.split('-'))
|
const positionClasses = computed(() => `${props.position}`.split('-'))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: 'Panel',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="vue-flow__panel" :class="positionClasses" :style="{ pointerEvents: userSelectionActive ? 'none' : 'all' }">
|
<div class="vue-flow__panel" :class="positionClasses" :style="{ pointerEvents: userSelectionActive ? 'none' : 'all' }">
|
||||||
<slot />
|
<slot />
|
||||||
|
|||||||
@@ -2,6 +2,13 @@
|
|||||||
const { userSelectionRect } = useVueFlow()
|
const { userSelectionRect } = useVueFlow()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: 'UserSelection',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
class="vue-flow__selection vue-flow__container"
|
class="vue-flow__selection vue-flow__container"
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ function getType(type?: string, template?: GraphEdge['template']) {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Edges',
|
name: 'Edges',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ const {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'MarkerType',
|
name: 'MarkerType',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ const markers = computed(() => {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'MarkerDefinitions',
|
name: 'MarkerDefinitions',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ function getType(type?: string, template?: GraphNode['template']) {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Nodes',
|
name: 'Nodes',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -215,6 +215,7 @@ function onMouseEnter(event: MouseEvent) {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Pane',
|
name: 'Pane',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ onMounted(async () => {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Transform',
|
name: 'Transform',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -299,6 +299,7 @@ function isWrappedWithClass(event: Event, className: string | undefined) {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'Viewport',
|
name: 'Viewport',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ defineExpose<VueFlowStore>({
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'VueFlow',
|
name: 'VueFlow',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ const onNodeMouseLeave = (event: MouseEvent, node: GraphNode) => {
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'MiniMap',
|
name: 'MiniMap',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { MiniMapSlots } from './types'
|
|||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
name: 'MiniMapNode',
|
name: 'MiniMapNode',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
props: ['id', 'position', 'dimensions', 'strokeWidth', 'strokeColor', 'borderRadius', 'color', 'shapeRendering', 'type'],
|
props: ['id', 'position', 'dimensions', 'strokeWidth', 'strokeColor', 'borderRadius', 'color', 'shapeRendering', 'type'],
|
||||||
emits: ['click', 'dblclick', 'mouseenter', 'mousemove', 'mouseleave'],
|
emits: ['click', 'dblclick', 'mouseenter', 'mousemove', 'mouseleave'],
|
||||||
setup(props: MiniMapNodeProps, { attrs, emit }) {
|
setup(props: MiniMapNodeProps, { attrs, emit }) {
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ const lineControls: ControlLinePosition[] = ['top', 'right', 'bottom', 'left']
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'NodeResizer',
|
name: 'NodeResizer',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -215,6 +215,13 @@ const colorStyleProp = computed(() => (props.variant === ResizeControlVariant.Li
|
|||||||
const controlStyle = computed(() => (props.color ? { [colorStyleProp.value]: props.color } : {}))
|
const controlStyle = computed(() => (props.color ? { [colorStyleProp.value]: props.color } : {}))
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: 'ResizeControl',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
ref="resizeControlRef"
|
ref="resizeControlRef"
|
||||||
|
|||||||
@@ -12,6 +12,13 @@ const emits = defineEmits<{
|
|||||||
}>()
|
}>()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="ts">
|
||||||
|
export default {
|
||||||
|
name: 'ResizeControlLine',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ResizeControl
|
<ResizeControl
|
||||||
v-bind="props"
|
v-bind="props"
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ const wrapperStyle = computed<CSSProperties>(() => ({
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'NodeToolbar',
|
name: 'NodeToolbar',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ const attrs = useAttrs() as { style: CSSProperties }
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'PerfectArrow',
|
name: 'PerfectArrow',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ const attrs: any = useAttrs()
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export default {
|
export default {
|
||||||
name: 'PathFindingEdge',
|
name: 'PathFindingEdge',
|
||||||
|
compatConfig: { MODE: 3 },
|
||||||
inheritAttrs: false,
|
inheritAttrs: false,
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user