mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
feat(editor): NDV UI overhaul experiment (#14209)
Co-authored-by: jakeranallo <jake.ranallo@gmail.com>
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<script setup lang="ts">
|
||||
import type { IUpdateInformation } from '@/Interface';
|
||||
import type { INodeTypeDescription } from 'n8n-workflow';
|
||||
import { type Tab, default as NodeSettingsTabs } from './NodeSettingsTabs.vue';
|
||||
import NodeExecuteButton from './NodeExecuteButton.vue';
|
||||
|
||||
type Props = {
|
||||
nodeName: string;
|
||||
hideExecute: boolean;
|
||||
hideTabs: boolean;
|
||||
disableExecute: boolean;
|
||||
executeButtonTooltip: string;
|
||||
selectedTab: Tab;
|
||||
nodeType?: INodeTypeDescription | null;
|
||||
pushRef: string;
|
||||
};
|
||||
|
||||
defineProps<Props>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
execute: [];
|
||||
'stop-execution': [];
|
||||
'value-changed': [update: IUpdateInformation];
|
||||
'tab-changed': [tab: Tab];
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div :class="$style.header">
|
||||
<NodeSettingsTabs
|
||||
v-if="!hideTabs"
|
||||
hide-docs
|
||||
:model-value="selectedTab"
|
||||
:node-type="nodeType"
|
||||
:push-ref="pushRef"
|
||||
:class="$style.tabs"
|
||||
@update:model-value="emit('tab-changed', $event)"
|
||||
/>
|
||||
<NodeExecuteButton
|
||||
v-if="!hideExecute"
|
||||
data-test-id="node-execute-button"
|
||||
:node-name="nodeName"
|
||||
:disabled="disableExecute"
|
||||
:tooltip="executeButtonTooltip"
|
||||
:class="$style.execute"
|
||||
size="small"
|
||||
telemetry-source="parameters"
|
||||
@execute="emit('execute')"
|
||||
@stop-execution="emit('stop-execution')"
|
||||
@value-changed="emit('value-changed', $event)"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" module>
|
||||
.header {
|
||||
--spacing-bottom-tab: calc(var(--spacing-xs));
|
||||
--font-size-tab: var(--font-size-2xs);
|
||||
--color-tabs-arrow-buttons: var(--color-background-xlight);
|
||||
--font-weight-tab: var(--font-weight-bold);
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 40px;
|
||||
padding-right: var(--spacing-s);
|
||||
|
||||
border-bottom: var(--border-base);
|
||||
}
|
||||
|
||||
.tabs {
|
||||
padding-top: calc(var(--spacing-xs) + 1px);
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user