refactor: Fix type issues for parameter input components (#9449)

This commit is contained in:
Elias Meire
2024-05-21 15:04:20 +02:00
committed by GitHub
parent cd751e7cc8
commit 711c46f205
36 changed files with 315 additions and 243 deletions

View File

@@ -30,7 +30,7 @@
:error-highlight="showRequiredErrors"
:is-for-credential="true"
:event-source="eventSource"
:hint="!showRequiredErrors ? hint : ''"
:hint="!showRequiredErrors && hint ? hint : ''"
:event-bus="eventBus"
@focus="onFocus"
@blur="onBlur"
@@ -61,7 +61,12 @@ import { defineComponent } from 'vue';
import type { PropType } from 'vue';
import ParameterInputWrapper from './ParameterInputWrapper.vue';
import { isValueExpression } from '@/utils/nodeTypesUtils';
import type { INodeParameterResourceLocator, INodeProperties, IParameterLabel } from 'n8n-workflow';
import type {
INodeParameterResourceLocator,
INodeProperties,
IParameterLabel,
NodeParameterValueType,
} from 'n8n-workflow';
import { mapStores } from 'pinia';
import { useWorkflowsStore } from '@/stores/workflows.store';
import { createEventBus } from 'n8n-design-system/utils';
@@ -75,8 +80,11 @@ export default defineComponent({
props: {
parameter: {
type: Object as PropType<INodeProperties>,
required: true,
},
value: {
type: Object as PropType<NodeParameterValueType>,
},
value: {},
showValidationWarnings: {
type: Boolean,
},