2022-05-23 08:56:15 -07:00
|
|
|
<template>
|
|
|
|
<RunData
|
|
|
|
:nodeUi="currentNode"
|
|
|
|
:runIndex="runIndex"
|
|
|
|
:linkedRuns="linkedRuns"
|
|
|
|
:canLinkRuns="canLinkRuns"
|
|
|
|
:tooMuchDataTitle="$locale.baseText('ndv.input.tooMuchData.title')"
|
|
|
|
:noDataInBranchMessage="$locale.baseText('ndv.input.noOutputDataInBranch')"
|
|
|
|
:isExecuting="isExecutingPrevious"
|
|
|
|
:executingMessage="$locale.baseText('ndv.input.executingPrevious')"
|
|
|
|
:sessionId="sessionId"
|
|
|
|
:overrideOutputs="connectedCurrentNodeOutputs"
|
2022-07-20 04:32:51 -07:00
|
|
|
:mappingEnabled="!readOnly"
|
|
|
|
:distanceFromActive="currentNodeDepth"
|
2022-11-14 04:28:26 -08:00
|
|
|
:isProductionExecutionPreview="isProductionExecutionPreview"
|
2022-05-23 08:56:15 -07:00
|
|
|
paneType="input"
|
2022-10-12 05:06:28 -07:00
|
|
|
@itemHover="$emit('itemHover', $event)"
|
2022-05-23 08:56:15 -07:00
|
|
|
@linkRun="onLinkRun"
|
|
|
|
@unlinkRun="onUnlinkRun"
|
2022-08-24 05:47:42 -07:00
|
|
|
@runChange="onRunIndexChange"
|
|
|
|
@tableMounted="$emit('tableMounted', $event)"
|
2022-12-01 00:26:38 -08:00
|
|
|
data-test-id="ndv-input-panel"
|
2022-12-14 01:04:10 -08:00
|
|
|
>
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #header>
|
2022-05-23 08:56:15 -07:00
|
|
|
<div :class="$style.titleSection">
|
2022-12-14 01:04:10 -08:00
|
|
|
<n8n-select
|
|
|
|
v-if="parentNodes.length"
|
|
|
|
:popper-append-to-body="true"
|
|
|
|
size="small"
|
|
|
|
:value="currentNodeName"
|
|
|
|
@input="onSelect"
|
|
|
|
:no-data-text="$locale.baseText('ndv.input.noNodesFound')"
|
|
|
|
:placeholder="$locale.baseText('ndv.input.parentNodes')"
|
|
|
|
filterable
|
|
|
|
data-test-id="ndv-input-select"
|
|
|
|
>
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #prepend>
|
2022-05-23 08:56:15 -07:00
|
|
|
<span :class="$style.title">{{ $locale.baseText('ndv.input') }}</span>
|
|
|
|
</template>
|
2022-12-14 01:04:10 -08:00
|
|
|
<n8n-option
|
|
|
|
v-for="node of parentNodes"
|
|
|
|
:value="node.name"
|
|
|
|
:key="node.name"
|
|
|
|
class="node-option"
|
|
|
|
:label="`${truncate(node.name)} ${getMultipleNodesText(node.name)}`"
|
|
|
|
data-test-id="ndv-input-option"
|
|
|
|
>
|
2023-03-23 03:20:11 -07:00
|
|
|
<span class="ph-no-capture">{{ truncate(node.name) }} </span>
|
2022-12-14 01:04:10 -08:00
|
|
|
<span v-if="getMultipleNodesText(node.name)">{{
|
|
|
|
getMultipleNodesText(node.name)
|
|
|
|
}}</span>
|
|
|
|
<span v-else>{{
|
|
|
|
$locale.baseText('ndv.input.nodeDistance', { adjustToNumber: node.depth })
|
|
|
|
}}</span>
|
2022-05-23 08:56:15 -07:00
|
|
|
</n8n-option>
|
|
|
|
</n8n-select>
|
|
|
|
<span v-else :class="$style.title">{{ $locale.baseText('ndv.input') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #node-not-run>
|
2022-05-23 08:56:15 -07:00
|
|
|
<div :class="$style.noOutputData" v-if="parentNodes.length">
|
2022-12-14 01:04:10 -08:00
|
|
|
<n8n-text tag="div" :bold="true" color="text-dark" size="large">{{
|
|
|
|
$locale.baseText('ndv.input.noOutputData.title')
|
|
|
|
}}</n8n-text>
|
|
|
|
<n8n-tooltip
|
|
|
|
v-if="!readOnly"
|
|
|
|
:manual="true"
|
|
|
|
:value="showDraggableHint && showDraggableHintWithDelay"
|
|
|
|
>
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #content>
|
2022-12-14 01:04:10 -08:00
|
|
|
<div
|
|
|
|
v-html="
|
|
|
|
$locale.baseText('dataMapping.dragFromPreviousHint', {
|
|
|
|
interpolate: { name: focusedMappableInput },
|
|
|
|
})
|
|
|
|
"
|
|
|
|
></div>
|
2022-11-18 05:59:31 -08:00
|
|
|
</template>
|
2022-12-14 01:04:10 -08:00
|
|
|
<NodeExecuteButton
|
|
|
|
type="secondary"
|
|
|
|
:transparent="true"
|
|
|
|
:nodeName="currentNodeName"
|
|
|
|
:label="$locale.baseText('ndv.input.noOutputData.executePrevious')"
|
|
|
|
@execute="onNodeExecute"
|
|
|
|
telemetrySource="inputs"
|
2023-02-06 20:47:37 -08:00
|
|
|
data-test-id="execute-previous-node"
|
2022-12-14 01:04:10 -08:00
|
|
|
/>
|
2022-07-20 04:32:51 -07:00
|
|
|
</n8n-tooltip>
|
|
|
|
<n8n-text v-if="!readOnly" tag="div" size="small">
|
2022-05-23 08:56:15 -07:00
|
|
|
{{ $locale.baseText('ndv.input.noOutputData.hint') }}
|
|
|
|
</n8n-text>
|
|
|
|
</div>
|
|
|
|
<div :class="$style.notConnected" v-else>
|
|
|
|
<div>
|
|
|
|
<WireMeUp />
|
|
|
|
</div>
|
2022-12-14 01:04:10 -08:00
|
|
|
<n8n-text tag="div" :bold="true" color="text-dark" size="large">{{
|
|
|
|
$locale.baseText('ndv.input.notConnected.title')
|
|
|
|
}}</n8n-text>
|
2022-05-23 08:56:15 -07:00
|
|
|
<n8n-text tag="div">
|
|
|
|
{{ $locale.baseText('ndv.input.notConnected.message') }}
|
2022-12-14 01:04:10 -08:00
|
|
|
<a
|
|
|
|
href="https://docs.n8n.io/workflows/connections/"
|
|
|
|
target="_blank"
|
|
|
|
@click="onConnectionHelpClick"
|
|
|
|
>
|
|
|
|
{{ $locale.baseText('ndv.input.notConnected.learnMore') }}
|
2022-05-23 08:56:15 -07:00
|
|
|
</a>
|
|
|
|
</n8n-text>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-11-18 05:59:31 -08:00
|
|
|
<template #no-output-data>
|
2022-12-14 01:04:10 -08:00
|
|
|
<n8n-text tag="div" :bold="true" color="text-dark" size="large">{{
|
|
|
|
$locale.baseText('ndv.input.noOutputData')
|
|
|
|
}}</n8n-text>
|
2022-05-23 08:56:15 -07:00
|
|
|
</template>
|
2023-02-17 01:54:07 -08:00
|
|
|
|
2023-04-25 07:57:21 -07:00
|
|
|
<template #recovered-artificial-output-data>
|
2023-02-17 01:54:07 -08:00
|
|
|
<div :class="$style.recoveredOutputData">
|
|
|
|
<n8n-text tag="div" :bold="true" color="text-dark" size="large">{{
|
|
|
|
$locale.baseText('executionDetails.executionFailed.recoveredNodeTitle')
|
|
|
|
}}</n8n-text>
|
|
|
|
<n8n-text>
|
|
|
|
{{ $locale.baseText('executionDetails.executionFailed.recoveredNodeMessage') }}
|
|
|
|
</n8n-text>
|
|
|
|
</div>
|
|
|
|
</template>
|
2022-05-23 08:56:15 -07:00
|
|
|
</RunData>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
2023-05-16 02:43:46 -07:00
|
|
|
import { defineComponent } from 'vue';
|
|
|
|
import { mapStores } from 'pinia';
|
2023-04-24 03:18:24 -07:00
|
|
|
import type { INodeUi } from '@/Interface';
|
|
|
|
import type { IConnectedNode, INodeTypeDescription, Workflow } from 'n8n-workflow';
|
2022-05-23 08:56:15 -07:00
|
|
|
import RunData from './RunData.vue';
|
2022-11-23 04:41:53 -08:00
|
|
|
import { workflowHelpers } from '@/mixins/workflowHelpers';
|
2022-05-23 08:56:15 -07:00
|
|
|
import NodeExecuteButton from './NodeExecuteButton.vue';
|
|
|
|
import WireMeUp from './WireMeUp.vue';
|
2022-12-14 01:04:10 -08:00
|
|
|
import {
|
|
|
|
CRON_NODE_TYPE,
|
|
|
|
INTERVAL_NODE_TYPE,
|
|
|
|
MANUAL_TRIGGER_NODE_TYPE,
|
|
|
|
START_NODE_TYPE,
|
|
|
|
} from '@/constants';
|
2023-05-05 01:41:54 -07:00
|
|
|
import { useWorkflowsStore } from '@/stores/workflows.store';
|
|
|
|
import { useNDVStore } from '@/stores/ndv.store';
|
|
|
|
import { useNodeTypesStore } from '@/stores/nodeTypes.store';
|
2022-05-23 08:56:15 -07:00
|
|
|
|
2023-05-16 02:43:46 -07:00
|
|
|
export default defineComponent({
|
2022-05-23 08:56:15 -07:00
|
|
|
name: 'InputPanel',
|
2023-05-16 02:43:46 -07:00
|
|
|
mixins: [workflowHelpers],
|
2022-05-23 08:56:15 -07:00
|
|
|
components: { RunData, NodeExecuteButton, WireMeUp },
|
|
|
|
props: {
|
|
|
|
currentNodeName: {
|
|
|
|
type: String,
|
|
|
|
},
|
|
|
|
runIndex: {
|
|
|
|
type: Number,
|
|
|
|
},
|
|
|
|
linkedRuns: {
|
|
|
|
type: Boolean,
|
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
workflow: {},
|
2022-05-23 08:56:15 -07:00
|
|
|
canLinkRuns: {
|
|
|
|
type: Boolean,
|
|
|
|
},
|
|
|
|
sessionId: {
|
|
|
|
type: String,
|
|
|
|
},
|
2022-07-14 23:15:39 -07:00
|
|
|
readOnly: {
|
|
|
|
type: Boolean,
|
|
|
|
},
|
2022-11-14 04:28:26 -08:00
|
|
|
isProductionExecutionPreview: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
},
|
2022-07-20 04:32:51 -07:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
showDraggableHintWithDelay: false,
|
|
|
|
draggableHintShown: false,
|
|
|
|
};
|
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
computed: {
|
2022-12-14 01:04:10 -08:00
|
|
|
...mapStores(useNodeTypesStore, useNDVStore, useWorkflowsStore),
|
2022-07-20 04:32:51 -07:00
|
|
|
focusedMappableInput(): string {
|
2022-11-04 06:04:31 -07:00
|
|
|
return this.ndvStore.focusedMappableInput;
|
2022-07-20 04:32:51 -07:00
|
|
|
},
|
|
|
|
isUserOnboarded(): boolean {
|
2023-03-01 03:02:34 -08:00
|
|
|
return this.ndvStore.isMappingOnboarded;
|
2022-07-20 04:32:51 -07:00
|
|
|
},
|
|
|
|
showDraggableHint(): boolean {
|
2022-12-14 01:04:10 -08:00
|
|
|
const toIgnore = [
|
|
|
|
START_NODE_TYPE,
|
|
|
|
MANUAL_TRIGGER_NODE_TYPE,
|
|
|
|
CRON_NODE_TYPE,
|
|
|
|
INTERVAL_NODE_TYPE,
|
|
|
|
];
|
2022-07-21 04:45:35 -07:00
|
|
|
if (!this.currentNode || toIgnore.includes(this.currentNode.type)) {
|
2022-07-20 04:32:51 -07:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
return !!this.focusedMappableInput && !this.isUserOnboarded;
|
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
isExecutingPrevious(): boolean {
|
2022-06-02 07:13:07 -07:00
|
|
|
if (!this.workflowRunning) {
|
|
|
|
return false;
|
|
|
|
}
|
2022-11-04 06:04:31 -07:00
|
|
|
const triggeredNode = this.workflowsStore.executedNode;
|
|
|
|
const executingNode = this.workflowsStore.executingNode;
|
2022-12-14 01:04:10 -08:00
|
|
|
if (
|
|
|
|
this.activeNode &&
|
|
|
|
triggeredNode === this.activeNode.name &&
|
|
|
|
this.activeNode.name !== executingNode
|
|
|
|
) {
|
2022-05-23 08:56:15 -07:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (executingNode || triggeredNode) {
|
2022-12-14 01:04:10 -08:00
|
|
|
return !!this.parentNodes.find(
|
|
|
|
(node) => node.name === executingNode || node.name === triggeredNode,
|
|
|
|
);
|
2022-05-23 08:56:15 -07:00
|
|
|
}
|
|
|
|
return false;
|
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
workflowRunning(): boolean {
|
2022-11-04 06:04:31 -07:00
|
|
|
return this.uiStore.isActionActive('workflowRunning');
|
2022-06-02 07:13:07 -07:00
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
currentWorkflow(): Workflow {
|
|
|
|
return this.workflow as Workflow;
|
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
activeNode(): INodeUi | null {
|
2022-11-04 06:04:31 -07:00
|
|
|
return this.ndvStore.activeNode;
|
2022-05-23 08:56:15 -07:00
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
currentNode(): INodeUi | null {
|
2022-11-04 06:04:31 -07:00
|
|
|
return this.workflowsStore.getNodeByName(this.currentNodeName);
|
2022-05-23 08:56:15 -07:00
|
|
|
},
|
|
|
|
connectedCurrentNodeOutputs(): number[] | undefined {
|
2022-12-14 01:04:10 -08:00
|
|
|
const search = this.parentNodes.find(({ name }) => name === this.currentNodeName);
|
2022-05-23 08:56:15 -07:00
|
|
|
if (search) {
|
|
|
|
return search.indicies;
|
|
|
|
}
|
|
|
|
return undefined;
|
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
parentNodes(): IConnectedNode[] {
|
2022-05-23 08:56:15 -07:00
|
|
|
if (!this.activeNode) {
|
|
|
|
return [];
|
|
|
|
}
|
2022-12-14 01:04:10 -08:00
|
|
|
const nodes: IConnectedNode[] = (this.workflow as Workflow).getParentNodesByDepth(
|
|
|
|
this.activeNode.name,
|
|
|
|
);
|
2022-05-23 08:56:15 -07:00
|
|
|
|
2022-12-14 01:04:10 -08:00
|
|
|
return nodes.filter(
|
|
|
|
({ name }, i) =>
|
|
|
|
this.activeNode &&
|
|
|
|
name !== this.activeNode.name &&
|
|
|
|
nodes.findIndex((node) => node.name === name) === i,
|
|
|
|
);
|
2022-05-23 08:56:15 -07:00
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
currentNodeDepth(): number {
|
|
|
|
const node = this.parentNodes.find(
|
|
|
|
(node) => this.currentNode && node.name === this.currentNode.name,
|
|
|
|
);
|
|
|
|
return node ? node.depth : -1;
|
2022-07-20 04:32:51 -07:00
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
activeNodeType(): INodeTypeDescription | null {
|
2022-09-13 06:42:44 -07:00
|
|
|
if (!this.activeNode) return null;
|
|
|
|
|
2022-11-04 06:04:31 -07:00
|
|
|
return this.nodeTypesStore.getNodeType(this.activeNode.type, this.activeNode.typeVersion);
|
2022-09-13 06:42:44 -07:00
|
|
|
},
|
2022-12-14 01:04:10 -08:00
|
|
|
isMultiInputNode(): boolean {
|
2022-09-13 06:42:44 -07:00
|
|
|
return this.activeNodeType !== null && this.activeNodeType.inputs.length > 1;
|
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
},
|
|
|
|
methods: {
|
2022-12-14 01:04:10 -08:00
|
|
|
getMultipleNodesText(nodeName?: string): string {
|
|
|
|
if (
|
2022-09-13 06:42:44 -07:00
|
|
|
!nodeName ||
|
|
|
|
!this.isMultiInputNode ||
|
|
|
|
!this.activeNode ||
|
|
|
|
this.activeNodeType === null ||
|
|
|
|
this.activeNodeType.inputNames === undefined
|
2022-12-14 01:04:10 -08:00
|
|
|
)
|
|
|
|
return '';
|
2022-09-13 06:42:44 -07:00
|
|
|
|
2022-12-14 01:04:10 -08:00
|
|
|
const activeNodeConnections =
|
|
|
|
this.currentWorkflow.connectionsByDestinationNode[this.activeNode.name].main || [];
|
2022-09-13 06:42:44 -07:00
|
|
|
// Collect indexes of connected nodes
|
|
|
|
const connectedInputIndexes = activeNodeConnections.reduce((acc: number[], node, index) => {
|
2022-12-14 01:04:10 -08:00
|
|
|
if (node[0] && node[0].node === nodeName) return [...acc, index];
|
2022-09-13 06:42:44 -07:00
|
|
|
return acc;
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
// Match connected input indexes to their names specified by active node
|
|
|
|
const connectedInputs = connectedInputIndexes.map(
|
|
|
|
(inputIndex) =>
|
|
|
|
this.activeNodeType &&
|
|
|
|
this.activeNodeType.inputNames &&
|
|
|
|
this.activeNodeType.inputNames[inputIndex],
|
|
|
|
);
|
|
|
|
|
2022-12-14 01:04:10 -08:00
|
|
|
if (connectedInputs.length === 0) return '';
|
2022-09-13 06:42:44 -07:00
|
|
|
|
|
|
|
return `(${connectedInputs.join(' & ')})`;
|
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
onNodeExecute() {
|
|
|
|
this.$emit('execute');
|
|
|
|
if (this.activeNode) {
|
|
|
|
this.$telemetry.track('User clicked ndv button', {
|
|
|
|
node_type: this.activeNode.type,
|
2022-11-04 06:04:31 -07:00
|
|
|
workflow_id: this.workflowsStore.workflowId,
|
2022-05-23 08:56:15 -07:00
|
|
|
session_id: this.sessionId,
|
|
|
|
pane: 'input',
|
|
|
|
type: 'executePrevious',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onRunIndexChange(run: number) {
|
|
|
|
this.$emit('runChange', run);
|
|
|
|
},
|
|
|
|
onLinkRun() {
|
|
|
|
this.$emit('linkRun');
|
|
|
|
},
|
|
|
|
onUnlinkRun() {
|
|
|
|
this.$emit('unlinkRun');
|
|
|
|
},
|
|
|
|
onSelect(value: string) {
|
|
|
|
const index = this.parentNodes.findIndex((node) => node.name === value) + 1;
|
|
|
|
this.$emit('select', value, index);
|
|
|
|
},
|
|
|
|
onConnectionHelpClick() {
|
|
|
|
if (this.activeNode) {
|
|
|
|
this.$telemetry.track('User clicked ndv link', {
|
|
|
|
node_type: this.activeNode.type,
|
2022-11-04 06:04:31 -07:00
|
|
|
workflow_id: this.workflowsStore.workflowId,
|
2022-05-23 08:56:15 -07:00
|
|
|
session_id: this.sessionId,
|
|
|
|
pane: 'input',
|
|
|
|
type: 'not-connected-help',
|
|
|
|
});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
truncate(nodeName: string) {
|
|
|
|
const truncated = nodeName.substring(0, 30);
|
|
|
|
if (truncated.length < nodeName.length) {
|
|
|
|
return `${truncated}...`;
|
|
|
|
}
|
|
|
|
return truncated;
|
|
|
|
},
|
|
|
|
},
|
2022-07-20 04:32:51 -07:00
|
|
|
watch: {
|
|
|
|
showDraggableHint(curr: boolean, prev: boolean) {
|
|
|
|
if (curr && !prev) {
|
|
|
|
setTimeout(() => {
|
|
|
|
if (this.draggableHintShown) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
this.showDraggableHintWithDelay = this.showDraggableHint;
|
|
|
|
if (this.showDraggableHintWithDelay) {
|
|
|
|
this.draggableHintShown = true;
|
|
|
|
|
2022-12-14 01:04:10 -08:00
|
|
|
this.$telemetry.track('User viewed data mapping tooltip', {
|
|
|
|
type: 'unexecuted input pane',
|
|
|
|
});
|
2022-07-20 04:32:51 -07:00
|
|
|
}
|
|
|
|
}, 1000);
|
2022-12-14 01:04:10 -08:00
|
|
|
} else if (!curr) {
|
2022-07-20 04:32:51 -07:00
|
|
|
this.showDraggableHintWithDelay = false;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
2022-05-23 08:56:15 -07:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
.titleSection {
|
|
|
|
display: flex;
|
|
|
|
max-width: 300px;
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-right: var(--spacing-2xs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.noOutputData {
|
|
|
|
max-width: 180px;
|
|
|
|
|
|
|
|
> *:first-child {
|
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-bottom: var(--spacing-2xs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-02-17 01:54:07 -08:00
|
|
|
.recoveredOutputData {
|
|
|
|
margin: auto;
|
|
|
|
max-width: 250px;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> *:first-child {
|
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-23 08:56:15 -07:00
|
|
|
.notConnected {
|
|
|
|
max-width: 300px;
|
|
|
|
|
|
|
|
> *:first-child {
|
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
}
|
|
|
|
|
|
|
|
> * {
|
|
|
|
margin-bottom: var(--spacing-2xs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: var(--color-text-light);
|
|
|
|
letter-spacing: 3px;
|
|
|
|
font-size: var(--font-size-s);
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.node-option {
|
|
|
|
font-weight: var(--font-weight-regular) !important;
|
|
|
|
|
|
|
|
span {
|
|
|
|
color: var(--color-text-light);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected > span {
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|