import { PropertyColorOption, PropertyOption, RegisteredWidgetConfig, WidgetConfig } from '@gspwidget/widget-devkit'; export declare const SHOW_RUNTIME_AGG_PROP_NAME = "showRuntimeAggBtn"; export declare const runtimeAggProps: PropertyOption[]; /** 所有部件都有的样式配置项 */ export declare const COMMON_STYLE_PROP_NAME = "CssStyle"; export declare function getPortletStyleProps(widgetConfig: WidgetConfig): PropertyOption[]; /** * name 被 widget Comp 引用了 */ export declare const jsBeforeLoadProp: PropertyOption; /** * name 被 widget Comp 引用了 */ export declare const jsOnBootProp: PropertyOption; /** echarts option 处理器函数列表 */ export declare const ECHARTS_OPTION_PROCESSORS = "ECHARTS_OPTION_PROCESSORS"; export interface OptionProcessorMap { [key: string]: (option: any) => void; } export declare class WidgetPropertyService { static DynamicPropsMap: {}; static RegisterProperties(name: string, props: PropertyOption[]): void; static GetRegisteredProperties(name: string): any; constructor(); /** * 获得某种类型的全局默认值,在完全没有值时使用 * @param prop * @param arrayItem 是否是来获取 array 的子项默认值的,默认不是。 * 如果不是,若 prop.isArray 为真,就返回空数组 []; * 如果是,则不管 prop.isArray 是否为真,总返回 prop.type 对应的默认值,仅应用于增加数组项时获取新项。 */ getPropertyDefaultValue(prop: PropertyOption, arrayItem?: boolean, colorIndex?: number): any; /** * 元部件加载、编译完成后,组装新的 properties * widget name * -> constructor name * -> widget + title bar + base properties * -> 元部件的所有可配置 properties */ getWidgetProps(widgetName: string, widgetConfig: RegisteredWidgetConfig): PropertyOption[]; /** * mixin 已有pv + 元部件推荐的默认pv + 此类型的全局默认pv */ mixinWidgetPropValues(props: PropertyOption[], propValues: object): { [propName: string]: any; }; getColorsByColorOption(colorOption: PropertyColorOption): any; /** * 加工元部件 props, 加工完的版本必须返回, 可以不改变引用 * 2510 增加此机制, 暂时仅用于批量改变图表元部件的“图表选项处理”prop实现 * 有了这个, 就不用改、打包、发布、测所有涉及的元部件了 * @param props 元部件原始的 props */ private processWidgetProps; }