UNPKG

@cainiaofe/cn-ui-charts

Version:
146 lines (145 loc) 7.72 kB
import React from 'react'; declare function getRealRequestUrl(config: any): any; export declare function executeFunction(func: any, ...rest: any[]): any; declare function isDesignMode(props: any): boolean; declare function isArrayNotEmpty(list: any): boolean; declare function isArrayEmpty(list: any): boolean; declare function judgeDataEmpty(options: any): true | undefined; declare function getRealResponse(res?: {}): {}; declare function transRequestConfigToRemote(config?: {}): {}; declare const handleDesignMokelayUrl: (url: any) => string; export declare function handleRequestParams(params: any, config?: {}): {}; export declare function isValueObjectExpr(obj: any): boolean; export declare function calculateTextExprValue(originValue: any, config?: {}): any; declare function handleResultProcessFunc2(response: any, requestConfig: any, extra: any): any; declare function handleSuccessMessage(res: any): void; declare function handleI18nLabel(label: any): any; declare function getChartCommonStyle(props: any): { containerStyle: { height: any; }; }; declare function getFilterValue(config: any): {}; declare const transProxyToObject: (origin: any) => {}; declare function makeChartRequestConfig(config: any): { needSuccessToast: boolean; buttonConfig: { options: { requestConfig: any; }; }; recordDataSource: {}; state: any; }; declare function calculateLabels(config: any): any[] | undefined; declare function getSlotDom(config: any): any; declare function isEmptyButNotZero(value: any): boolean; declare function getCommonInteraction(): { interaction: { tooltip: { shared: boolean; }; elementHighlightByColor: { background: boolean; }; }; }; export declare function getItem(componentMap: any, position: any, componentName: any, propKey: any, extraQueryParams: any): any; export declare function condition(prop: any, type: any, primaryKey: any): boolean; export declare function handlePrototypeCondition(prototypeList: never[] | undefined, componentName: any, primaryKey: any): never[]; declare function getItemPrototypeListByPosition(config: any): any; export declare function getItemListByPosition(config: any): any[]; declare function getBizComponentNameList(): any[]; export declare function getItemDefaultProps(componentMap: any, position: any, componentName: any): any; declare function calculateFeature(config: any): any; declare function getJSExpressionPrototype(config: any): {}; declare function getDataSourceListWithAllPath(config: any): any[]; declare function calculateAdvancedConfig(config: any): any; declare const getDataSourceList: (config: any) => any[]; declare function createDataSourceSetters(): ({ name: string; title: string; display: string; supportVariable: boolean; mutator(value: any): void; initialValue(value: any): { type: string; variable: string; } | undefined; setter: React.JSX.Element; } | { name: string; title: string; display: string; initialValue(): any; supportVariable?: undefined; setter?: undefined; })[]; declare function getLowCodeCoreUtil(path: any): any; declare function setAliasName(fieldName: any, aliasName: any, options: any): void; declare function getFirstOptions(options: any): any; declare function setDataToDs(config: any): void; declare function createOpenUtil(): void; declare function uuid(len?: number): string; declare function getRealData(realRequestConfig: any, res: any, _context: any): any; declare function AutoWireRerender(SourceComp: React.ComponentClass): { new (props: any): { ref: React.RefObject<unknown>; reRender: () => void; render(): React.JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<{}> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void; }; contextType?: React.Context<any> | undefined; }; declare function AutoWireViewWithRerender(compList: React.FunctionComponent[] | React.ClassicComponentClass[]): ({ new (props: any): { ref: React.RefObject<unknown>; reRender: () => void; render(): React.JSX.Element; context: any; setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<{}>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void; forceUpdate(callback?: (() => void) | undefined): void; readonly props: Readonly<{}> & Readonly<{ children?: React.ReactNode; }>; state: Readonly<{}>; refs: { [key: string]: React.ReactInstance; }; componentDidMount?(): void; shouldComponentUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): boolean; componentWillUnmount?(): void; componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void; getSnapshotBeforeUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>): any; componentDidUpdate?(prevProps: Readonly<{}>, prevState: Readonly<{}>, snapshot?: any): void; componentWillMount?(): void; UNSAFE_componentWillMount?(): void; componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillReceiveProps?(nextProps: Readonly<{}>, nextContext: any): void; componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void; UNSAFE_componentWillUpdate?(nextProps: Readonly<{}>, nextState: Readonly<{}>, nextContext: any): void; }; contextType?: React.Context<any> | undefined; } | React.FunctionComponent<{}> | React.ClassicComponentClass<{}>)[]; export { isDesignMode, isArrayNotEmpty, getRealResponse, getRealRequestUrl, handleDesignMokelayUrl, transRequestConfigToRemote, handleResultProcessFunc2, handleSuccessMessage, handleI18nLabel, getChartCommonStyle, getFilterValue, transProxyToObject, makeChartRequestConfig, calculateLabels, getSlotDom, isEmptyButNotZero, getCommonInteraction, getItemPrototypeListByPosition, getBizComponentNameList, calculateFeature, getJSExpressionPrototype, getDataSourceListWithAllPath, calculateAdvancedConfig, createDataSourceSetters, getDataSourceList, isArrayEmpty, judgeDataEmpty, getLowCodeCoreUtil, setAliasName, getFirstOptions, setDataToDs, createOpenUtil, uuid, getRealData, AutoWireRerender, AutoWireViewWithRerender, };