@jaspersoft/jv-input-controls
Version:
Component for rendering input controls for a report or ad hoc view using visualize.js
60 lines (59 loc) • 2.04 kB
TypeScript
import { VisualizeClient } from '@jaspersoft/jv-tools';
import { BoolICType } from './controls/BooleanInputControl';
import { DatePickerICType } from './controls/DatePickerInputControl';
import { DateICType } from './controls/DatePickerTextFieldInputControl';
import { DateTimePickerICType } from './controls/DateTimePickerInputControl';
import { DateTimeICType } from './controls/DateTimePickerTextFieldInputControl';
import { NumberICType } from './controls/SingleValueNumberInputControl';
import { TextFieldICType } from './controls/SingleValueTextInputControl';
import { TimePickerICType } from './controls/TimePickerInputControl';
import { TimeICType } from './controls/TimePickerTextFieldInputControl';
import { MultiSelectICType } from './controls/MultiSelectInputControl';
import { SingleSelectICType } from './controls/SingleSelectInputControl';
export interface InputControlsTypeConfig {
bool?: {
type: BoolICType;
};
singleValueText?: {
type: TextFieldICType;
};
singleValueNumber?: {
type: NumberICType;
};
singleValueDate?: {
type: DateICType | DatePickerICType;
};
singleValueDatetime?: {
type: DateTimeICType | DateTimePickerICType;
};
singleValueTime?: {
type: TimeICType | TimePickerICType;
};
singleSelect?: {
type: SingleSelectICType;
};
multiSelect?: {
type: MultiSelectICType;
};
}
export interface InputControlsConfig {
success?: (controls: any) => void;
error?: (error: any) => void;
typeConfig?: InputControlsTypeConfig;
events?: {
change?: (ic: {
[key: string]: any[];
}, validationResult: {
[key: string]: string;
} | boolean) => void;
};
params?: {
[key: string]: string[];
};
}
export interface InputControlsProps {
v?: VisualizeClient;
uri: string;
config?: InputControlsConfig;
}
export declare function InputControls(props: InputControlsProps): import("react/jsx-runtime").JSX.Element;