import { FieldMappingPair, MappedField } from '../../models/mapping.model'; import { ConfigModel } from '../../models/config.model'; import { FieldAction, FieldActionArgument, FieldActionArgumentValue, FieldActionConfig } from '../../models/transition.model'; export declare class MappingFieldActionComponent { cfg: ConfigModel; mappedField: MappedField; isSource: boolean; fieldPair: FieldMappingPair; getMappedFieldActions(): FieldAction[]; isIndexArg(argVal: string, index: number): boolean; actionsExistForField(): boolean; getActionConfigs(): FieldActionConfig[]; /** * Return in a string array the parameter values for the specified field action argument. * @param argConfig */ getActionConfigParamValues(argConfig: FieldActionArgument): String[]; removeAction(action: FieldAction): void; /** * Simply validate that the user isn't attempting a conversion to the original type. * @param acp */ validateActionConfigParamSelection(acp: FieldActionArgumentValue[]): void; /** * A mapping field action parameter selection has been made either from a pull-down menu * or from user input to a text field. * @param event */ actionConfigParamSelectionChanged(event: any): void; /** * The 'Add Transformation' button has been selected. Establish a new field action. */ addTransformation(): void; /** * A mapping field action configuration selection has been made. Note that action field arguments, if any, * may be specified by either a text field or pull-down menu. * @param event */ configSelectionChanged(event: any): void; /** * Translate an internal label to a human legible form. * @param paramName */ getLabel(paramName: string): string; /** * Return a string representing the default value for the field action argument pull-down. If a mapped * field already exists for this component then use that to determine the displayed valued in the * pull-down; otherwise use the sequential configuration value based on the argument value index. * * @param argConfig - argument configuration used if no mapped field exists * @param actionIndex - used when multiple actions are specified * @param argValIndex - index into the argument values for any one specific action. */ getActionConfigParamVDefault(argConfig: FieldActionArgument, actionIndex: number, argValIndex: number): String; }