jamis
Version:
一种支持通过JSON配置方式生成页面的组件库
953 lines (952 loc) • 45.8 kB
TypeScript
import React from 'react';
import type { ActionObject } from 'jamis-core';
import type { Moment } from 'moment';
import type { DatePickerProps, DateProps, ShortcutValue } from '../types';
interface DateControlState {
minDate?: Moment;
maxDate?: Moment;
/** 快捷键的参考日期 */
shortcutsRefDate?: Moment;
schedules?: Array<{
startTime: Date;
endTime: Date;
content: any;
className?: string;
}>;
}
export default class DateControl extends React.PureComponent<DateProps, DateControlState> {
static defaultProps: Partial<DateProps>;
dateRef?: any;
constructor(props: DateProps);
componentDidUpdate(prevProps: DateProps): void;
onScheduleClick(scheduleData: any): void;
getRef: (ref: any) => void;
dispatchEvent: (e: React.SyntheticEvent<HTMLElement>) => void;
doAction(action: ActionObject, data: object, throwErrors: boolean): void;
handleChange: (nextValue: any) => Promise<void>;
calcInputFormat: () => string | undefined;
formatShortcuts: (shortcuts: DateProps["shortcuts"]) => DatePickerProps["shortcuts"];
updateRules: () => void;
render(): JSX.Element;
}
export declare class DateControlRenderer extends DateControl {
static defaultProps: {
placeholder: string;
dateFormat: string;
timeFormat: string;
strictMode: boolean;
viewMode?: import("./components/Calendar.types").CalendarViewMode | undefined;
valueFormat?: string;
timeConstraints?: import("./components/Calendar.types").TimeConstraints;
disabled?: boolean | undefined;
iconClassName?: string;
render?: import("jamis-core").SchemaRenderFn | undefined;
env?: import("jamis-core").RendererEnv | undefined;
$path?: string | undefined;
scopeRef?: (scoped: import("jamis-core").IScopedContext) => void;
$schema?: (import("jamis-core").BaseSchemaWithoutType & {
[key: string]: any;
type: string;
}) | undefined;
store?: import("jamis-core").IIRendererStore;
syncSuperStore?: boolean;
data?: import("jamis-core").RendererPropsData | undefined;
defaultData?: Record<string, any>;
className?: import("jamis-core").SchemaClassName;
rootStore?: import("jamis-core").IRendererStoreCopy | undefined;
topStore?: import("jamis-core").IRootStoreCopy | undefined;
appStore?: import("jamis-core").IAppStoreCopy;
dispatchEvent?: import("jamis-core").DispatchEventFn<import("jamis-core").RendererPropsData, string | React.SyntheticEvent<HTMLElement, Event>> | undefined;
onAction?: import("jamis-core").OnActionFn;
$$editor?: any;
style?: React.CSSProperties;
onEvent?: import("jamis-core").EventListeners;
pickClassStyle?: import("jamis-core").PickClassStyleFn;
onOpenDialog?: ((schema: import("jamis-core").Schema, data: any) => Promise<any>) | undefined;
name?: string;
formStore?: import("../types").IFormStore;
formItem?: import("../types").IFormItemStore;
formInited?: boolean | undefined;
formMode?: "normal" | "horizontal" | "inline" | "default" | "row" | undefined;
formHorizontal?: import("../types").FormHorizontal | undefined;
horizontal?: import("../types").FormHorizontal;
formLabelAlign?: import("../types").LabelAlign | undefined;
formLabelWidth?: number | string;
defaultSize?: import("../types").SizeUnit;
size?: import("../types").SizeUnit;
labelAlign?: import("../types").LabelAlign;
labelWidth?: number | string;
labelClassName?: string;
btnDisabled?: boolean | undefined;
defaultValue?: any;
value?: any;
prinstine?: any;
formItemValue?: any;
inputClassName?: string;
inputStyle?: React.CSSProperties;
inputOnly?: boolean;
renderLabel?: boolean;
renderDescription?: boolean;
sizeMutable?: boolean;
wrap?: boolean;
hint?: string;
description?: string;
descriptionClassName?: string;
errors?: {
[propName: string]: string;
};
error?: string;
showErrorMsg?: boolean;
requiredClassName?: import("jamis-core").SchemaClassName;
valueClassName?: import("jamis-core").SchemaClassName;
setPrinstineValue?: ((value: any) => void) | undefined;
onChange?: ((value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void) | undefined;
onBulkChange?: (values: {
[propName: string]: any;
}, submitOnChange?: boolean) => void;
addHook?: ((fn: Function, mode: "validate" | "init" | "flush") => () => void) | undefined;
removeHook?: ((fn: Function, mode?: "validate" | "init" | "flush") => void) | undefined;
renderFormItems?: ((schema: Partial<import("../types").FormSchemaBase>, region: string, props: any) => JSX.Element) | undefined;
onFocus?: ((e: any) => void) | undefined;
onBlur?: ((e: any) => void) | undefined;
getValue?: (() => any) | undefined;
setValue?: ((value: any, key: string) => void) | undefined;
renderControl?: (props: import("../types").FormControlProps) => JSX.Element;
sizeExpr?: import("jamis-core").SchemaExpression;
placeholderExpr?: import("jamis-core").SchemaExpression;
id?: string;
key?: any;
classMap?: import("jamis-core").ClassMap;
styleMap?: import("jamis-core").StyleMap;
$ref?: string;
definitions?: Record<string, any>;
disabledOn?: import("jamis-core").SchemaBoolean;
hidden?: boolean;
hiddenOn?: import("jamis-core").SchemaBoolean;
visible?: boolean;
visibleOn?: import("jamis-core").SchemaBoolean;
editorSetting?: {
behavior?: string;
displayName?: string;
mock?: any;
[propName: string]: any;
};
remark?: import("../types").SchemaRemark;
labelRemark?: import("../types").SchemaRemark;
clearable?: boolean;
submitOnChange?: boolean;
readOnly?: boolean;
readOnlyOn?: string;
validateOnChange?: boolean;
validatable?: boolean;
validatableOn?: import("jamis-core").SchemaExpression;
desc?: string;
mode?: "normal" | "inline" | "horizontal";
modeExpr?: import("jamis-core").SchemaExpression;
inline?: boolean;
controlBodyClassName?: import("jamis-core").SchemaClassName;
required?: boolean;
requiredOn?: import("jamis-core").SchemaExpression;
changeImmediately?: boolean;
validationErrors?: { [k in keyof import("../types").FormValidation]: string; };
validations?: string | import("../types").FormValidation;
clearValueOnHidden?: boolean;
validateApi?: import("jamis-core").Api;
columnRatio?: import("jamis-core").GridSizeUnit;
columnRatioExpr?: import("jamis-core").GridSizeUnit | import("jamis-core").SchemaExpression | Record<import("jamis-core").GridSizeUnitStr, boolean | import("jamis-core").SchemaBoolean>;
static?: boolean;
staticOn?: import("jamis-core").SchemaExpression;
staticPlaceholder?: string;
staticClassName?: import("jamis-core").SchemaClassName;
staticLabelClassName?: import("jamis-core").SchemaClassName;
staticInputClassName?: import("jamis-core").SchemaClassName;
staticSchema?: any;
validate?: (values: any, value: any) => string | boolean;
pipeIn?: ((value: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
pipeOut?: ((value: any, originValue: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
embed?: boolean;
borderMode?: "full" | "half" | "none";
format?: string;
inputFormat?: string;
utc?: boolean;
disableMonthSwitch?: boolean;
closeOnSelect?: boolean;
minDate?: import("jamis-core").SchemaExpression;
maxDate?: import("jamis-core").SchemaExpression;
shortcuts?: string | Array<ShortcutValue | {
label: string;
value: ShortcutValue | import("./components/Calendar.types").DateExpression;
}>;
shortcutsClassName?: import("jamis-core").SchemaClassName;
shortcutsRefDate?: import("jamis-core").SchemaExpression;
shortcutsPosition?: "picker" | "input";
pickerInputClassName?: import("jamis-core").SchemaClassName;
};
}
export declare class DatetimeControlRenderer extends DateControl {
static defaultProps: {
placeholder: string;
inputFormat: string;
dateFormat: string;
timeFormat: string;
closeOnSelect: boolean;
strictMode: boolean;
viewMode?: import("./components/Calendar.types").CalendarViewMode | undefined;
valueFormat?: string;
timeConstraints?: import("./components/Calendar.types").TimeConstraints;
disabled?: boolean | undefined;
iconClassName?: string;
render?: import("jamis-core").SchemaRenderFn | undefined;
env?: import("jamis-core").RendererEnv | undefined;
$path?: string | undefined;
scopeRef?: (scoped: import("jamis-core").IScopedContext) => void;
$schema?: (import("jamis-core").BaseSchemaWithoutType & {
[key: string]: any;
type: string;
}) | undefined;
store?: import("jamis-core").IIRendererStore;
syncSuperStore?: boolean;
data?: import("jamis-core").RendererPropsData | undefined;
defaultData?: Record<string, any>;
className?: import("jamis-core").SchemaClassName;
rootStore?: import("jamis-core").IRendererStoreCopy | undefined;
topStore?: import("jamis-core").IRootStoreCopy | undefined;
appStore?: import("jamis-core").IAppStoreCopy;
dispatchEvent?: import("jamis-core").DispatchEventFn<import("jamis-core").RendererPropsData, string | React.SyntheticEvent<HTMLElement, Event>> | undefined;
onAction?: import("jamis-core").OnActionFn;
$$editor?: any;
style?: React.CSSProperties;
onEvent?: import("jamis-core").EventListeners;
pickClassStyle?: import("jamis-core").PickClassStyleFn;
onOpenDialog?: ((schema: import("jamis-core").Schema, data: any) => Promise<any>) | undefined;
name?: string;
formStore?: import("../types").IFormStore;
formItem?: import("../types").IFormItemStore;
formInited?: boolean | undefined;
formMode?: "normal" | "horizontal" | "inline" | "default" | "row" | undefined;
formHorizontal?: import("../types").FormHorizontal | undefined;
horizontal?: import("../types").FormHorizontal;
formLabelAlign?: import("../types").LabelAlign | undefined;
formLabelWidth?: number | string;
defaultSize?: import("../types").SizeUnit;
size?: import("../types").SizeUnit;
labelAlign?: import("../types").LabelAlign;
labelWidth?: number | string;
labelClassName?: string;
btnDisabled?: boolean | undefined;
defaultValue?: any;
value?: any;
prinstine?: any;
formItemValue?: any;
inputClassName?: string;
inputStyle?: React.CSSProperties;
inputOnly?: boolean;
renderLabel?: boolean;
renderDescription?: boolean;
sizeMutable?: boolean;
wrap?: boolean;
hint?: string;
description?: string;
descriptionClassName?: string;
errors?: {
[propName: string]: string;
};
error?: string;
showErrorMsg?: boolean;
requiredClassName?: import("jamis-core").SchemaClassName;
valueClassName?: import("jamis-core").SchemaClassName;
setPrinstineValue?: ((value: any) => void) | undefined;
onChange?: ((value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void) | undefined;
onBulkChange?: (values: {
[propName: string]: any;
}, submitOnChange?: boolean) => void;
addHook?: ((fn: Function, mode: "validate" | "init" | "flush") => () => void) | undefined;
removeHook?: ((fn: Function, mode?: "validate" | "init" | "flush") => void) | undefined;
renderFormItems?: ((schema: Partial<import("../types").FormSchemaBase>, region: string, props: any) => JSX.Element) | undefined;
onFocus?: ((e: any) => void) | undefined;
onBlur?: ((e: any) => void) | undefined;
getValue?: (() => any) | undefined;
setValue?: ((value: any, key: string) => void) | undefined;
renderControl?: (props: import("../types").FormControlProps) => JSX.Element;
sizeExpr?: import("jamis-core").SchemaExpression;
placeholderExpr?: import("jamis-core").SchemaExpression;
id?: string;
key?: any;
classMap?: import("jamis-core").ClassMap;
styleMap?: import("jamis-core").StyleMap;
$ref?: string;
definitions?: Record<string, any>;
disabledOn?: import("jamis-core").SchemaBoolean;
hidden?: boolean;
hiddenOn?: import("jamis-core").SchemaBoolean;
visible?: boolean;
visibleOn?: import("jamis-core").SchemaBoolean;
editorSetting?: {
behavior?: string;
displayName?: string;
mock?: any;
[propName: string]: any;
};
remark?: import("../types").SchemaRemark;
labelRemark?: import("../types").SchemaRemark;
clearable?: boolean;
submitOnChange?: boolean;
readOnly?: boolean;
readOnlyOn?: string;
validateOnChange?: boolean;
validatable?: boolean;
validatableOn?: import("jamis-core").SchemaExpression;
desc?: string;
mode?: "normal" | "inline" | "horizontal";
modeExpr?: import("jamis-core").SchemaExpression;
inline?: boolean;
controlBodyClassName?: import("jamis-core").SchemaClassName;
required?: boolean;
requiredOn?: import("jamis-core").SchemaExpression;
changeImmediately?: boolean;
validationErrors?: { [k in keyof import("../types").FormValidation]: string; };
validations?: string | import("../types").FormValidation;
clearValueOnHidden?: boolean;
validateApi?: import("jamis-core").Api;
columnRatio?: import("jamis-core").GridSizeUnit;
columnRatioExpr?: import("jamis-core").GridSizeUnit | import("jamis-core").SchemaExpression | Record<import("jamis-core").GridSizeUnitStr, boolean | import("jamis-core").SchemaBoolean>;
static?: boolean;
staticOn?: import("jamis-core").SchemaExpression;
staticPlaceholder?: string;
staticClassName?: import("jamis-core").SchemaClassName;
staticLabelClassName?: import("jamis-core").SchemaClassName;
staticInputClassName?: import("jamis-core").SchemaClassName;
staticSchema?: any;
validate?: (values: any, value: any) => string | boolean;
pipeIn?: ((value: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
pipeOut?: ((value: any, originValue: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
embed?: boolean;
borderMode?: "full" | "half" | "none";
format?: string;
utc?: boolean;
disableMonthSwitch?: boolean;
minDate?: import("jamis-core").SchemaExpression;
maxDate?: import("jamis-core").SchemaExpression;
shortcuts?: string | Array<ShortcutValue | {
label: string;
value: ShortcutValue | import("./components/Calendar.types").DateExpression;
}>;
shortcutsClassName?: import("jamis-core").SchemaClassName;
shortcutsRefDate?: import("jamis-core").SchemaExpression;
shortcutsPosition?: "picker" | "input";
pickerInputClassName?: import("jamis-core").SchemaClassName;
};
}
export declare class TimeControlRenderer extends DateControl {
static defaultProps: {
placeholder: string;
inputFormat: string;
dateFormat: string;
timeFormat: string;
viewMode: "time";
closeOnSelect: boolean;
valueFormat?: string;
timeConstraints?: import("./components/Calendar.types").TimeConstraints;
disabled?: boolean | undefined;
iconClassName?: string;
render?: import("jamis-core").SchemaRenderFn | undefined;
env?: import("jamis-core").RendererEnv | undefined;
$path?: string | undefined;
scopeRef?: (scoped: import("jamis-core").IScopedContext) => void;
$schema?: (import("jamis-core").BaseSchemaWithoutType & {
[key: string]: any;
type: string;
}) | undefined;
store?: import("jamis-core").IIRendererStore;
syncSuperStore?: boolean;
data?: import("jamis-core").RendererPropsData | undefined;
defaultData?: Record<string, any>;
className?: import("jamis-core").SchemaClassName;
rootStore?: import("jamis-core").IRendererStoreCopy | undefined;
topStore?: import("jamis-core").IRootStoreCopy | undefined;
appStore?: import("jamis-core").IAppStoreCopy;
dispatchEvent?: import("jamis-core").DispatchEventFn<import("jamis-core").RendererPropsData, string | React.SyntheticEvent<HTMLElement, Event>> | undefined;
onAction?: import("jamis-core").OnActionFn;
$$editor?: any;
style?: React.CSSProperties;
onEvent?: import("jamis-core").EventListeners;
pickClassStyle?: import("jamis-core").PickClassStyleFn;
onOpenDialog?: ((schema: import("jamis-core").Schema, data: any) => Promise<any>) | undefined;
name?: string;
formStore?: import("../types").IFormStore;
formItem?: import("../types").IFormItemStore;
formInited?: boolean | undefined;
formMode?: "normal" | "horizontal" | "inline" | "default" | "row" | undefined;
formHorizontal?: import("../types").FormHorizontal | undefined;
horizontal?: import("../types").FormHorizontal;
formLabelAlign?: import("../types").LabelAlign | undefined;
formLabelWidth?: number | string;
defaultSize?: import("../types").SizeUnit;
size?: import("../types").SizeUnit;
labelAlign?: import("../types").LabelAlign;
labelWidth?: number | string;
labelClassName?: string;
btnDisabled?: boolean | undefined;
defaultValue?: any;
value?: any;
prinstine?: any;
formItemValue?: any;
inputClassName?: string;
inputStyle?: React.CSSProperties;
inputOnly?: boolean;
renderLabel?: boolean;
renderDescription?: boolean;
sizeMutable?: boolean;
wrap?: boolean;
hint?: string;
description?: string;
descriptionClassName?: string;
errors?: {
[propName: string]: string;
};
error?: string;
showErrorMsg?: boolean;
requiredClassName?: import("jamis-core").SchemaClassName;
valueClassName?: import("jamis-core").SchemaClassName;
setPrinstineValue?: ((value: any) => void) | undefined;
onChange?: ((value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void) | undefined;
onBulkChange?: (values: {
[propName: string]: any;
}, submitOnChange?: boolean) => void;
addHook?: ((fn: Function, mode: "validate" | "init" | "flush") => () => void) | undefined;
removeHook?: ((fn: Function, mode?: "validate" | "init" | "flush") => void) | undefined;
renderFormItems?: ((schema: Partial<import("../types").FormSchemaBase>, region: string, props: any) => JSX.Element) | undefined;
onFocus?: ((e: any) => void) | undefined;
onBlur?: ((e: any) => void) | undefined;
getValue?: (() => any) | undefined;
setValue?: ((value: any, key: string) => void) | undefined;
renderControl?: (props: import("../types").FormControlProps) => JSX.Element;
sizeExpr?: import("jamis-core").SchemaExpression;
placeholderExpr?: import("jamis-core").SchemaExpression;
id?: string;
key?: any;
classMap?: import("jamis-core").ClassMap;
styleMap?: import("jamis-core").StyleMap;
$ref?: string;
definitions?: Record<string, any>;
disabledOn?: import("jamis-core").SchemaBoolean;
hidden?: boolean;
hiddenOn?: import("jamis-core").SchemaBoolean;
visible?: boolean;
visibleOn?: import("jamis-core").SchemaBoolean;
editorSetting?: {
behavior?: string;
displayName?: string;
mock?: any;
[propName: string]: any;
};
remark?: import("../types").SchemaRemark;
labelRemark?: import("../types").SchemaRemark;
clearable?: boolean;
submitOnChange?: boolean;
readOnly?: boolean;
readOnlyOn?: string;
validateOnChange?: boolean;
validatable?: boolean;
validatableOn?: import("jamis-core").SchemaExpression;
desc?: string;
mode?: "normal" | "inline" | "horizontal";
modeExpr?: import("jamis-core").SchemaExpression;
inline?: boolean;
controlBodyClassName?: import("jamis-core").SchemaClassName;
required?: boolean;
requiredOn?: import("jamis-core").SchemaExpression;
changeImmediately?: boolean;
validationErrors?: { [k in keyof import("../types").FormValidation]: string; };
validations?: string | import("../types").FormValidation;
clearValueOnHidden?: boolean;
validateApi?: import("jamis-core").Api;
columnRatio?: import("jamis-core").GridSizeUnit;
columnRatioExpr?: import("jamis-core").GridSizeUnit | import("jamis-core").SchemaExpression | Record<import("jamis-core").GridSizeUnitStr, boolean | import("jamis-core").SchemaBoolean>;
static?: boolean;
staticOn?: import("jamis-core").SchemaExpression;
staticPlaceholder?: string;
staticClassName?: import("jamis-core").SchemaClassName;
staticLabelClassName?: import("jamis-core").SchemaClassName;
staticInputClassName?: import("jamis-core").SchemaClassName;
staticSchema?: any;
validate?: (values: any, value: any) => string | boolean;
pipeIn?: ((value: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
pipeOut?: ((value: any, originValue: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
embed?: boolean;
borderMode?: "full" | "half" | "none";
format?: string;
utc?: boolean;
disableMonthSwitch?: boolean;
minDate?: import("jamis-core").SchemaExpression;
maxDate?: import("jamis-core").SchemaExpression;
shortcuts?: string | Array<ShortcutValue | {
label: string;
value: ShortcutValue | import("./components/Calendar.types").DateExpression;
}>;
shortcutsClassName?: import("jamis-core").SchemaClassName;
shortcutsRefDate?: import("jamis-core").SchemaExpression;
shortcutsPosition?: "picker" | "input";
pickerInputClassName?: import("jamis-core").SchemaClassName;
};
}
export declare class MonthControlRenderer extends DateControl {
static defaultProps: {
placeholder: string;
inputFormat: string;
dateFormat: string;
timeFormat: string;
viewMode: "months";
closeOnSelect: boolean;
valueFormat?: string;
timeConstraints?: import("./components/Calendar.types").TimeConstraints;
disabled?: boolean | undefined;
iconClassName?: string;
render?: import("jamis-core").SchemaRenderFn | undefined;
env?: import("jamis-core").RendererEnv | undefined;
$path?: string | undefined;
scopeRef?: (scoped: import("jamis-core").IScopedContext) => void;
$schema?: (import("jamis-core").BaseSchemaWithoutType & {
[key: string]: any;
type: string;
}) | undefined;
store?: import("jamis-core").IIRendererStore;
syncSuperStore?: boolean;
data?: import("jamis-core").RendererPropsData | undefined;
defaultData?: Record<string, any>;
className?: import("jamis-core").SchemaClassName;
rootStore?: import("jamis-core").IRendererStoreCopy | undefined;
topStore?: import("jamis-core").IRootStoreCopy | undefined;
appStore?: import("jamis-core").IAppStoreCopy;
dispatchEvent?: import("jamis-core").DispatchEventFn<import("jamis-core").RendererPropsData, string | React.SyntheticEvent<HTMLElement, Event>> | undefined;
onAction?: import("jamis-core").OnActionFn;
$$editor?: any;
style?: React.CSSProperties;
onEvent?: import("jamis-core").EventListeners;
pickClassStyle?: import("jamis-core").PickClassStyleFn;
onOpenDialog?: ((schema: import("jamis-core").Schema, data: any) => Promise<any>) | undefined;
name?: string;
formStore?: import("../types").IFormStore;
formItem?: import("../types").IFormItemStore;
formInited?: boolean | undefined;
formMode?: "normal" | "horizontal" | "inline" | "default" | "row" | undefined;
formHorizontal?: import("../types").FormHorizontal | undefined;
horizontal?: import("../types").FormHorizontal;
formLabelAlign?: import("../types").LabelAlign | undefined;
formLabelWidth?: number | string;
defaultSize?: import("../types").SizeUnit;
size?: import("../types").SizeUnit;
labelAlign?: import("../types").LabelAlign;
labelWidth?: number | string;
labelClassName?: string;
btnDisabled?: boolean | undefined;
defaultValue?: any;
value?: any;
prinstine?: any;
formItemValue?: any;
inputClassName?: string;
inputStyle?: React.CSSProperties;
inputOnly?: boolean;
renderLabel?: boolean;
renderDescription?: boolean;
sizeMutable?: boolean;
wrap?: boolean;
hint?: string;
description?: string;
descriptionClassName?: string;
errors?: {
[propName: string]: string;
};
error?: string;
showErrorMsg?: boolean;
requiredClassName?: import("jamis-core").SchemaClassName;
valueClassName?: import("jamis-core").SchemaClassName;
setPrinstineValue?: ((value: any) => void) | undefined;
onChange?: ((value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void) | undefined;
onBulkChange?: (values: {
[propName: string]: any;
}, submitOnChange?: boolean) => void;
addHook?: ((fn: Function, mode: "validate" | "init" | "flush") => () => void) | undefined;
removeHook?: ((fn: Function, mode?: "validate" | "init" | "flush") => void) | undefined;
renderFormItems?: ((schema: Partial<import("../types").FormSchemaBase>, region: string, props: any) => JSX.Element) | undefined;
onFocus?: ((e: any) => void) | undefined;
onBlur?: ((e: any) => void) | undefined;
getValue?: (() => any) | undefined;
setValue?: ((value: any, key: string) => void) | undefined;
renderControl?: (props: import("../types").FormControlProps) => JSX.Element;
sizeExpr?: import("jamis-core").SchemaExpression;
placeholderExpr?: import("jamis-core").SchemaExpression;
id?: string;
key?: any;
classMap?: import("jamis-core").ClassMap;
styleMap?: import("jamis-core").StyleMap;
$ref?: string;
definitions?: Record<string, any>;
disabledOn?: import("jamis-core").SchemaBoolean;
hidden?: boolean;
hiddenOn?: import("jamis-core").SchemaBoolean;
visible?: boolean;
visibleOn?: import("jamis-core").SchemaBoolean;
editorSetting?: {
behavior?: string;
displayName?: string;
mock?: any;
[propName: string]: any;
};
remark?: import("../types").SchemaRemark;
labelRemark?: import("../types").SchemaRemark;
clearable?: boolean;
submitOnChange?: boolean;
readOnly?: boolean;
readOnlyOn?: string;
validateOnChange?: boolean;
validatable?: boolean;
validatableOn?: import("jamis-core").SchemaExpression;
desc?: string;
mode?: "normal" | "inline" | "horizontal";
modeExpr?: import("jamis-core").SchemaExpression;
inline?: boolean;
controlBodyClassName?: import("jamis-core").SchemaClassName;
required?: boolean;
requiredOn?: import("jamis-core").SchemaExpression;
changeImmediately?: boolean;
validationErrors?: { [k in keyof import("../types").FormValidation]: string; };
validations?: string | import("../types").FormValidation;
clearValueOnHidden?: boolean;
validateApi?: import("jamis-core").Api;
columnRatio?: import("jamis-core").GridSizeUnit;
columnRatioExpr?: import("jamis-core").GridSizeUnit | import("jamis-core").SchemaExpression | Record<import("jamis-core").GridSizeUnitStr, boolean | import("jamis-core").SchemaBoolean>;
static?: boolean;
staticOn?: import("jamis-core").SchemaExpression;
staticPlaceholder?: string;
staticClassName?: import("jamis-core").SchemaClassName;
staticLabelClassName?: import("jamis-core").SchemaClassName;
staticInputClassName?: import("jamis-core").SchemaClassName;
staticSchema?: any;
validate?: (values: any, value: any) => string | boolean;
pipeIn?: ((value: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
pipeOut?: ((value: any, originValue: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
embed?: boolean;
borderMode?: "full" | "half" | "none";
format?: string;
utc?: boolean;
disableMonthSwitch?: boolean;
minDate?: import("jamis-core").SchemaExpression;
maxDate?: import("jamis-core").SchemaExpression;
shortcuts?: string | Array<ShortcutValue | {
label: string;
value: ShortcutValue | import("./components/Calendar.types").DateExpression;
}>;
shortcutsClassName?: import("jamis-core").SchemaClassName;
shortcutsRefDate?: import("jamis-core").SchemaExpression;
shortcutsPosition?: "picker" | "input";
pickerInputClassName?: import("jamis-core").SchemaClassName;
};
}
export declare class QuarterControlRenderer extends DateControl {
static defaultProps: {
placeholder: string;
inputFormat: string;
dateFormat: string;
timeFormat: string;
viewMode: "quarters";
closeOnSelect: boolean;
valueFormat?: string;
timeConstraints?: import("./components/Calendar.types").TimeConstraints;
disabled?: boolean | undefined;
iconClassName?: string;
render?: import("jamis-core").SchemaRenderFn | undefined;
env?: import("jamis-core").RendererEnv | undefined;
$path?: string | undefined;
scopeRef?: (scoped: import("jamis-core").IScopedContext) => void;
$schema?: (import("jamis-core").BaseSchemaWithoutType & {
[key: string]: any;
type: string;
}) | undefined;
store?: import("jamis-core").IIRendererStore;
syncSuperStore?: boolean;
data?: import("jamis-core").RendererPropsData | undefined;
defaultData?: Record<string, any>;
className?: import("jamis-core").SchemaClassName;
rootStore?: import("jamis-core").IRendererStoreCopy | undefined;
topStore?: import("jamis-core").IRootStoreCopy | undefined;
appStore?: import("jamis-core").IAppStoreCopy;
dispatchEvent?: import("jamis-core").DispatchEventFn<import("jamis-core").RendererPropsData, string | React.SyntheticEvent<HTMLElement, Event>> | undefined;
onAction?: import("jamis-core").OnActionFn;
$$editor?: any;
style?: React.CSSProperties;
onEvent?: import("jamis-core").EventListeners;
pickClassStyle?: import("jamis-core").PickClassStyleFn;
onOpenDialog?: ((schema: import("jamis-core").Schema, data: any) => Promise<any>) | undefined;
name?: string;
formStore?: import("../types").IFormStore;
formItem?: import("../types").IFormItemStore;
formInited?: boolean | undefined;
formMode?: "normal" | "horizontal" | "inline" | "default" | "row" | undefined;
formHorizontal?: import("../types").FormHorizontal | undefined;
horizontal?: import("../types").FormHorizontal;
formLabelAlign?: import("../types").LabelAlign | undefined;
formLabelWidth?: number | string;
defaultSize?: import("../types").SizeUnit;
size?: import("../types").SizeUnit;
labelAlign?: import("../types").LabelAlign;
labelWidth?: number | string;
labelClassName?: string;
btnDisabled?: boolean | undefined;
defaultValue?: any;
value?: any;
prinstine?: any;
formItemValue?: any;
inputClassName?: string;
inputStyle?: React.CSSProperties;
inputOnly?: boolean;
renderLabel?: boolean;
renderDescription?: boolean;
sizeMutable?: boolean;
wrap?: boolean;
hint?: string;
description?: string;
descriptionClassName?: string;
errors?: {
[propName: string]: string;
};
error?: string;
showErrorMsg?: boolean;
requiredClassName?: import("jamis-core").SchemaClassName;
valueClassName?: import("jamis-core").SchemaClassName;
setPrinstineValue?: ((value: any) => void) | undefined;
onChange?: ((value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void) | undefined;
onBulkChange?: (values: {
[propName: string]: any;
}, submitOnChange?: boolean) => void;
addHook?: ((fn: Function, mode: "validate" | "init" | "flush") => () => void) | undefined;
removeHook?: ((fn: Function, mode?: "validate" | "init" | "flush") => void) | undefined;
renderFormItems?: ((schema: Partial<import("../types").FormSchemaBase>, region: string, props: any) => JSX.Element) | undefined;
onFocus?: ((e: any) => void) | undefined;
onBlur?: ((e: any) => void) | undefined;
getValue?: (() => any) | undefined;
setValue?: ((value: any, key: string) => void) | undefined;
renderControl?: (props: import("../types").FormControlProps) => JSX.Element;
sizeExpr?: import("jamis-core").SchemaExpression;
placeholderExpr?: import("jamis-core").SchemaExpression;
id?: string;
key?: any;
classMap?: import("jamis-core").ClassMap;
styleMap?: import("jamis-core").StyleMap;
$ref?: string;
definitions?: Record<string, any>;
disabledOn?: import("jamis-core").SchemaBoolean;
hidden?: boolean;
hiddenOn?: import("jamis-core").SchemaBoolean;
visible?: boolean;
visibleOn?: import("jamis-core").SchemaBoolean;
editorSetting?: {
behavior?: string;
displayName?: string;
mock?: any;
[propName: string]: any;
};
remark?: import("../types").SchemaRemark;
labelRemark?: import("../types").SchemaRemark;
clearable?: boolean;
submitOnChange?: boolean;
readOnly?: boolean;
readOnlyOn?: string;
validateOnChange?: boolean;
validatable?: boolean;
validatableOn?: import("jamis-core").SchemaExpression;
desc?: string;
mode?: "normal" | "inline" | "horizontal";
modeExpr?: import("jamis-core").SchemaExpression;
inline?: boolean;
controlBodyClassName?: import("jamis-core").SchemaClassName;
required?: boolean;
requiredOn?: import("jamis-core").SchemaExpression;
changeImmediately?: boolean;
validationErrors?: { [k in keyof import("../types").FormValidation]: string; };
validations?: string | import("../types").FormValidation;
clearValueOnHidden?: boolean;
validateApi?: import("jamis-core").Api;
columnRatio?: import("jamis-core").GridSizeUnit;
columnRatioExpr?: import("jamis-core").GridSizeUnit | import("jamis-core").SchemaExpression | Record<import("jamis-core").GridSizeUnitStr, boolean | import("jamis-core").SchemaBoolean>;
static?: boolean;
staticOn?: import("jamis-core").SchemaExpression;
staticPlaceholder?: string;
staticClassName?: import("jamis-core").SchemaClassName;
staticLabelClassName?: import("jamis-core").SchemaClassName;
staticInputClassName?: import("jamis-core").SchemaClassName;
staticSchema?: any;
validate?: (values: any, value: any) => string | boolean;
pipeIn?: ((value: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
pipeOut?: ((value: any, originValue: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
embed?: boolean;
borderMode?: "full" | "half" | "none";
format?: string;
utc?: boolean;
disableMonthSwitch?: boolean;
minDate?: import("jamis-core").SchemaExpression;
maxDate?: import("jamis-core").SchemaExpression;
shortcuts?: string | Array<ShortcutValue | {
label: string;
value: ShortcutValue | import("./components/Calendar.types").DateExpression;
}>;
shortcutsClassName?: import("jamis-core").SchemaClassName;
shortcutsRefDate?: import("jamis-core").SchemaExpression;
shortcutsPosition?: "picker" | "input";
pickerInputClassName?: import("jamis-core").SchemaClassName;
};
}
export declare class YearControlRenderer extends DateControl {
static defaultProps: {
placeholder: string;
inputFormat: string;
dateFormat: string;
timeFormat: string;
viewMode: "years";
closeOnSelect: boolean;
valueFormat?: string;
timeConstraints?: import("./components/Calendar.types").TimeConstraints;
disabled?: boolean | undefined;
iconClassName?: string;
render?: import("jamis-core").SchemaRenderFn | undefined;
env?: import("jamis-core").RendererEnv | undefined;
$path?: string | undefined;
scopeRef?: (scoped: import("jamis-core").IScopedContext) => void;
$schema?: (import("jamis-core").BaseSchemaWithoutType & {
[key: string]: any;
type: string;
}) | undefined;
store?: import("jamis-core").IIRendererStore;
syncSuperStore?: boolean;
data?: import("jamis-core").RendererPropsData | undefined;
defaultData?: Record<string, any>;
className?: import("jamis-core").SchemaClassName;
rootStore?: import("jamis-core").IRendererStoreCopy | undefined;
topStore?: import("jamis-core").IRootStoreCopy | undefined;
appStore?: import("jamis-core").IAppStoreCopy;
dispatchEvent?: import("jamis-core").DispatchEventFn<import("jamis-core").RendererPropsData, string | React.SyntheticEvent<HTMLElement, Event>> | undefined;
onAction?: import("jamis-core").OnActionFn;
$$editor?: any;
style?: React.CSSProperties;
onEvent?: import("jamis-core").EventListeners;
pickClassStyle?: import("jamis-core").PickClassStyleFn;
onOpenDialog?: ((schema: import("jamis-core").Schema, data: any) => Promise<any>) | undefined;
name?: string;
formStore?: import("../types").IFormStore;
formItem?: import("../types").IFormItemStore;
formInited?: boolean | undefined;
formMode?: "normal" | "horizontal" | "inline" | "default" | "row" | undefined;
formHorizontal?: import("../types").FormHorizontal | undefined;
horizontal?: import("../types").FormHorizontal;
formLabelAlign?: import("../types").LabelAlign | undefined;
formLabelWidth?: number | string;
defaultSize?: import("../types").SizeUnit;
size?: import("../types").SizeUnit;
labelAlign?: import("../types").LabelAlign;
labelWidth?: number | string;
labelClassName?: string;
btnDisabled?: boolean | undefined;
defaultValue?: any;
value?: any;
prinstine?: any;
formItemValue?: any;
inputClassName?: string;
inputStyle?: React.CSSProperties;
inputOnly?: boolean;
renderLabel?: boolean;
renderDescription?: boolean;
sizeMutable?: boolean;
wrap?: boolean;
hint?: string;
description?: string;
descriptionClassName?: string;
errors?: {
[propName: string]: string;
};
error?: string;
showErrorMsg?: boolean;
requiredClassName?: import("jamis-core").SchemaClassName;
valueClassName?: import("jamis-core").SchemaClassName;
setPrinstineValue?: ((value: any) => void) | undefined;
onChange?: ((value: any, submitOnChange?: boolean, changeImmediately?: boolean) => void) | undefined;
onBulkChange?: (values: {
[propName: string]: any;
}, submitOnChange?: boolean) => void;
addHook?: ((fn: Function, mode: "validate" | "init" | "flush") => () => void) | undefined;
removeHook?: ((fn: Function, mode?: "validate" | "init" | "flush") => void) | undefined;
renderFormItems?: ((schema: Partial<import("../types").FormSchemaBase>, region: string, props: any) => JSX.Element) | undefined;
onFocus?: ((e: any) => void) | undefined;
onBlur?: ((e: any) => void) | undefined;
getValue?: (() => any) | undefined;
setValue?: ((value: any, key: string) => void) | undefined;
renderControl?: (props: import("../types").FormControlProps) => JSX.Element;
sizeExpr?: import("jamis-core").SchemaExpression;
placeholderExpr?: import("jamis-core").SchemaExpression;
id?: string;
key?: any;
classMap?: import("jamis-core").ClassMap;
styleMap?: import("jamis-core").StyleMap;
$ref?: string;
definitions?: Record<string, any>;
disabledOn?: import("jamis-core").SchemaBoolean;
hidden?: boolean;
hiddenOn?: import("jamis-core").SchemaBoolean;
visible?: boolean;
visibleOn?: import("jamis-core").SchemaBoolean;
editorSetting?: {
behavior?: string;
displayName?: string;
mock?: any;
[propName: string]: any;
};
remark?: import("../types").SchemaRemark;
labelRemark?: import("../types").SchemaRemark;
clearable?: boolean;
submitOnChange?: boolean;
readOnly?: boolean;
readOnlyOn?: string;
validateOnChange?: boolean;
validatable?: boolean;
validatableOn?: import("jamis-core").SchemaExpression;
desc?: string;
mode?: "normal" | "inline" | "horizontal";
modeExpr?: import("jamis-core").SchemaExpression;
inline?: boolean;
controlBodyClassName?: import("jamis-core").SchemaClassName;
required?: boolean;
requiredOn?: import("jamis-core").SchemaExpression;
changeImmediately?: boolean;
validationErrors?: { [k in keyof import("../types").FormValidation]: string; };
validations?: string | import("../types").FormValidation;
clearValueOnHidden?: boolean;
validateApi?: import("jamis-core").Api;
columnRatio?: import("jamis-core").GridSizeUnit;
columnRatioExpr?: import("jamis-core").GridSizeUnit | import("jamis-core").SchemaExpression | Record<import("jamis-core").GridSizeUnitStr, boolean | import("jamis-core").SchemaBoolean>;
static?: boolean;
staticOn?: import("jamis-core").SchemaExpression;
staticPlaceholder?: string;
staticClassName?: import("jamis-core").SchemaClassName;
staticLabelClassName?: import("jamis-core").SchemaClassName;
staticInputClassName?: import("jamis-core").SchemaClassName;
staticSchema?: any;
validate?: (values: any, value: any) => string | boolean;
pipeIn?: ((value: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
pipeOut?: ((value: any, originValue: any, data: Record<string, any>) => any) | import("jamis-core").SchemaExpression;
embed?: boolean;
borderMode?: "full" | "half" | "none";
format?: string;
utc?: boolean;
disableMonthSwitch?: boolean;
minDate?: import("jamis-core").SchemaExpression;
maxDate?: import("jamis-core").SchemaExpression;
shortcuts?: string | Array<ShortcutValue | {
label: string;
value: ShortcutValue | import("./components/Calendar.types").DateExpression;
}>;
shortcutsClassName?: import("jamis-core").SchemaClassName;
shortcutsRefDate?: import("jamis-core").SchemaExpression;
shortcutsPosition?: "picker" | "input";
pickerInputClassName?: import("jamis-core").SchemaClassName;
};
}
export {};