mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
* commit package lock * refactor param options out * use action toggle * handle click on toggle * update color toggle * fix toggle * show options * update expression color * update pointer * fix readonly * fix readonly * fix expression spacing * refactor input label * show icon for headers * center icon * fix multi params * add credential options * increase spacing * update expression view * update transition * update el padding * rename side to options * fix label overflow * fix bug with unnessary lines * add overlay * fix bug affecting other pages * clean up spacing * rename * update icon size * fix toggle in users * clean up func * clean up css * use css var * fix overlay bug * clean up input * clean up input * clean up unnessary css * revert * update quotes * rename method * remove console errors * refactor data table * add drag button * make hoverable cells * add drag hint * disabel for output panel * add drag * disable for readonly * Add dragging * add draggable pill * add mapping targets * remove font color * Transferable * fix linting issue * teleport component * fix line * disable for readonly * fix position of data pill * fix position of data pill * ignore import * add droppable state * remove draggable key * update bg color * add value drop * use direct input * remove transition * add animation * shorten name * handle empty value * fix switch bug * fix up animation * add notification * add hint * add tooltip * show draggable hintm * fix multiple expre * fix hoverable * keep options on focus * increase timeouts * fix bug in set node * add transition on hover out * fix tooltip onboarding bug * only update expression if changes * add open delay * fix header highlight issue * update text * dont show tooltip always * update docs url * update ee border * add sticky behav * hide error highlight if dropping * switch out grip icon * increase timeout * add delay * show hint on execprev * add telemetry event * add telemetry event * add telemetry event * fire event on hint showing * fix telemetry event * add path * fix drag hint issue * decrease bottom margin * update mapping keys * remove file * hide overflow * sort params * add space * prevent scrolling * remove dropshadow * force cursor * address some comments * add thead tbody * add size opt
133 lines
2.3 KiB
Vue
133 lines
2.3 KiB
Vue
<template>
|
|
<Draggable type="panel-resize" @drag="onDrag" @dragstart="onDragStart" @dragend="onDragEnd">
|
|
<template v-slot="{ isDragging }">
|
|
<div
|
|
:class="{ [$style.dragButton]: true }"
|
|
>
|
|
<span v-if="canMoveLeft" :class="{ [$style.leftArrow]: true, [$style.visible]: isDragging }">
|
|
<font-awesome-icon icon="arrow-left" />
|
|
</span>
|
|
<span v-if="canMoveRight" :class="{ [$style.rightArrow]: true, [$style.visible]: isDragging }">
|
|
<font-awesome-icon icon="arrow-right" />
|
|
</span>
|
|
<div :class="$style.grid">
|
|
<div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
<div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</Draggable>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import mixins from 'vue-typed-mixins';
|
|
import Draggable from './Draggable.vue';
|
|
import dragging from './Draggable.vue';
|
|
|
|
export default mixins(dragging).extend({
|
|
components: {
|
|
Draggable,
|
|
},
|
|
props: {
|
|
canMoveRight: {
|
|
type: Boolean,
|
|
},
|
|
canMoveLeft: {
|
|
type: Boolean,
|
|
},
|
|
},
|
|
methods: {
|
|
onDrag(e: {x: number, y: number}) {
|
|
this.$emit('drag', e);
|
|
},
|
|
onDragStart() {
|
|
this.$emit('dragstart');
|
|
},
|
|
onDragEnd() {
|
|
this.$emit('dragend');
|
|
},
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.dragButton {
|
|
background-color: var(--color-background-base);
|
|
width: 64px;
|
|
height: 21px;
|
|
border-top-left-radius: var(--border-radius-base);
|
|
border-top-right-radius: var(--border-radius-base);
|
|
cursor: grab;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: visible;
|
|
|
|
&:hover {
|
|
.leftArrow, .rightArrow {
|
|
visibility: visible;
|
|
}
|
|
}
|
|
}
|
|
|
|
.visible {
|
|
visibility: visible !important;
|
|
}
|
|
|
|
.arrow {
|
|
position: absolute;
|
|
color: var(--color-background-xlight);
|
|
font-size: var(--font-size-3xs);
|
|
visibility: hidden;
|
|
top: 0;
|
|
}
|
|
|
|
.leftArrow {
|
|
composes: arrow;
|
|
left: -16px;
|
|
}
|
|
|
|
.rightArrow {
|
|
composes: arrow;
|
|
right: -16px;
|
|
}
|
|
|
|
.grid {
|
|
> div {
|
|
display: flex;
|
|
|
|
&:first-child {
|
|
> div {
|
|
margin-bottom: 2px;
|
|
}
|
|
}
|
|
|
|
> div {
|
|
height: 2px;
|
|
width: 2px;
|
|
border-radius: 50%;
|
|
background-color: var(--color-foreground-xdark);
|
|
margin-right: 4px;
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
</style>
|