import BaseNode from '../common/BaseNode'; import type PropDeclaration from './PropDeclaration__'; import type EventDeclaration from './EventDeclaration__'; import type SlotDeclaration from './SlotDeclaration__'; import type LogicDeclaration from './LogicDeclaration__'; import type ViewBlockWithImage from './ViewBlockWithImage__'; import type ThemeVariable from './ThemeVariable__'; /** * 页面组件 */ export declare class ViewComponentDeclaration extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'ViewComponentDeclaration'; /** * 页面组件名称 */ name: string; /** * 页面组件中划线名称 */ kebabName: string; /** * 页面组件标题 */ title: string; /** * 所在分组 */ group: string; /** * 页面组件图标 */ icon: string; /** * 页面组件描述 */ description?: string; /** * 关于 TS 的 typeParams */ tsTypeParams?: string; /** * 组件属性列表 */ props: Array; /** * 可访问的组件属性列表 */ readableProps: Array; /** * 组件事件列表 */ events: Array; /** * 插槽列表 */ slots: Array; /** * 逻辑列表 */ methods: Array; /** * 页面组件列表 */ children: Array; /** * 页面组件的代码块列表 */ blocks: Array; /** * 主题变量 */ themeVariables: Array; /** * 国际化配置列表 */ i18nMap?: Record>; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): ViewComponentDeclaration; getPropDeclarationExistingNames(excludedList?: Array): string[]; getPropDeclarationUniqueName(name?: string): string; /** * 插入组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ _insertPropDeclarationAt(name: string, index: number): PropDeclaration; /** * 插入组件属性 * @internal * @param propDeclarationOptions 组件属性参数 */ _insertPropDeclarationAt(propDeclarationOptions: Partial, index: number): PropDeclaration; /** * 插入组件属性 * @internal * @param propDeclaration 已有的组件属性实例 */ _insertPropDeclarationAt(propDeclaration: PropDeclaration, index: number): PropDeclaration; /** * 插入组件属性 * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ insertPropDeclarationAt(name: string, index: number): PropDeclaration; /** * 插入组件属性 * @param propDeclarationOptions 组件属性参数 */ insertPropDeclarationAt(propDeclarationOptions: Partial, index: number): PropDeclaration; /** * 插入组件属性 * @param propDeclaration 已有的组件属性实例 */ insertPropDeclarationAt(propDeclaration: PropDeclaration, index: number): PropDeclaration; /** * 添加组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ _addPropDeclaration(name?: string): PropDeclaration; /** * 添加组件属性 * @internal * @param propDeclarationOptions 组件属性参数 */ _addPropDeclaration(propDeclarationOptions: Partial): PropDeclaration; /** * 添加组件属性 * @internal * @param propDeclaration 已有的组件属性实例 */ _addPropDeclaration(propDeclaration: PropDeclaration): PropDeclaration; /** * 添加组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ addPropDeclaration(name?: string): PropDeclaration; /** * 添加组件属性 * @param propDeclarationOptions 组件属性参数 */ addPropDeclaration(propDeclarationOptions: Partial): PropDeclaration; /** * 添加组件属性 * @param propDeclaration 已有的组件属性实例 */ addPropDeclaration(propDeclaration: PropDeclaration): PropDeclaration; /** * 插入组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ _insertPropDeclarationInReadablePropsAt(name: string, index: number): PropDeclaration; /** * 插入组件属性 * @internal * @param propDeclarationOptions 组件属性参数 */ _insertPropDeclarationInReadablePropsAt(propDeclarationOptions: Partial, index: number): PropDeclaration; /** * 插入组件属性 * @internal * @param propDeclaration 已有的组件属性实例 */ _insertPropDeclarationInReadablePropsAt(propDeclaration: PropDeclaration, index: number): PropDeclaration; /** * 插入组件属性 * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ insertPropDeclarationInReadablePropsAt(name: string, index: number): PropDeclaration; /** * 插入组件属性 * @param propDeclarationOptions 组件属性参数 */ insertPropDeclarationInReadablePropsAt(propDeclarationOptions: Partial, index: number): PropDeclaration; /** * 插入组件属性 * @param propDeclaration 已有的组件属性实例 */ insertPropDeclarationInReadablePropsAt(propDeclaration: PropDeclaration, index: number): PropDeclaration; /** * 添加组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ _addPropDeclarationInReadableProps(name?: string): PropDeclaration; /** * 添加组件属性 * @internal * @param propDeclarationOptions 组件属性参数 */ _addPropDeclarationInReadableProps(propDeclarationOptions: Partial): PropDeclaration; /** * 添加组件属性 * @internal * @param propDeclaration 已有的组件属性实例 */ _addPropDeclarationInReadableProps(propDeclaration: PropDeclaration): PropDeclaration; /** * 添加组件属性 * @internal * @param name 组件属性名称,如果不填会自动生成一个唯一名称 */ addPropDeclarationInReadableProps(name?: string): PropDeclaration; /** * 添加组件属性 * @param propDeclarationOptions 组件属性参数 */ addPropDeclarationInReadableProps(propDeclarationOptions: Partial): PropDeclaration; /** * 添加组件属性 * @param propDeclaration 已有的组件属性实例 */ addPropDeclarationInReadableProps(propDeclaration: PropDeclaration): PropDeclaration; getEventDeclarationExistingNames(excludedList?: Array): string[]; getEventDeclarationUniqueName(name?: string): string; /** * 插入组件事件 * @internal * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ _insertEventDeclarationAt(name: string, index: number): EventDeclaration; /** * 插入组件事件 * @internal * @param eventDeclarationOptions 组件事件参数 */ _insertEventDeclarationAt(eventDeclarationOptions: Partial, index: number): EventDeclaration; /** * 插入组件事件 * @internal * @param eventDeclaration 已有的组件事件实例 */ _insertEventDeclarationAt(eventDeclaration: EventDeclaration, index: number): EventDeclaration; /** * 插入组件事件 * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ insertEventDeclarationAt(name: string, index: number): EventDeclaration; /** * 插入组件事件 * @param eventDeclarationOptions 组件事件参数 */ insertEventDeclarationAt(eventDeclarationOptions: Partial, index: number): EventDeclaration; /** * 插入组件事件 * @param eventDeclaration 已有的组件事件实例 */ insertEventDeclarationAt(eventDeclaration: EventDeclaration, index: number): EventDeclaration; /** * 添加组件事件 * @internal * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ _addEventDeclaration(name?: string): EventDeclaration; /** * 添加组件事件 * @internal * @param eventDeclarationOptions 组件事件参数 */ _addEventDeclaration(eventDeclarationOptions: Partial): EventDeclaration; /** * 添加组件事件 * @internal * @param eventDeclaration 已有的组件事件实例 */ _addEventDeclaration(eventDeclaration: EventDeclaration): EventDeclaration; /** * 添加组件事件 * @internal * @param name 组件事件名称,如果不填会自动生成一个唯一名称 */ addEventDeclaration(name?: string): EventDeclaration; /** * 添加组件事件 * @param eventDeclarationOptions 组件事件参数 */ addEventDeclaration(eventDeclarationOptions: Partial): EventDeclaration; /** * 添加组件事件 * @param eventDeclaration 已有的组件事件实例 */ addEventDeclaration(eventDeclaration: EventDeclaration): EventDeclaration; getSlotDeclarationExistingNames(excludedList?: Array): string[]; getSlotDeclarationUniqueName(name?: string): string; /** * 插入插槽 * @internal * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ _insertSlotDeclarationAt(name: string, index: number): SlotDeclaration; /** * 插入插槽 * @internal * @param slotDeclarationOptions 插槽参数 */ _insertSlotDeclarationAt(slotDeclarationOptions: Partial, index: number): SlotDeclaration; /** * 插入插槽 * @internal * @param slotDeclaration 已有的插槽实例 */ _insertSlotDeclarationAt(slotDeclaration: SlotDeclaration, index: number): SlotDeclaration; /** * 插入插槽 * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ insertSlotDeclarationAt(name: string, index: number): SlotDeclaration; /** * 插入插槽 * @param slotDeclarationOptions 插槽参数 */ insertSlotDeclarationAt(slotDeclarationOptions: Partial, index: number): SlotDeclaration; /** * 插入插槽 * @param slotDeclaration 已有的插槽实例 */ insertSlotDeclarationAt(slotDeclaration: SlotDeclaration, index: number): SlotDeclaration; /** * 添加插槽 * @internal * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ _addSlotDeclaration(name?: string): SlotDeclaration; /** * 添加插槽 * @internal * @param slotDeclarationOptions 插槽参数 */ _addSlotDeclaration(slotDeclarationOptions: Partial): SlotDeclaration; /** * 添加插槽 * @internal * @param slotDeclaration 已有的插槽实例 */ _addSlotDeclaration(slotDeclaration: SlotDeclaration): SlotDeclaration; /** * 添加插槽 * @internal * @param name 插槽名称,如果不填会自动生成一个唯一名称 */ addSlotDeclaration(name?: string): SlotDeclaration; /** * 添加插槽 * @param slotDeclarationOptions 插槽参数 */ addSlotDeclaration(slotDeclarationOptions: Partial): SlotDeclaration; /** * 添加插槽 * @param slotDeclaration 已有的插槽实例 */ addSlotDeclaration(slotDeclaration: SlotDeclaration): SlotDeclaration; getLogicDeclarationExistingNames(excludedList?: Array): string[]; getLogicDeclarationUniqueName(name?: string): string; /** * 插入逻辑声明 * @internal * @param name 逻辑声明名称,如果不填会自动生成一个唯一名称 */ _insertLogicDeclarationAt(name: string, index: number): LogicDeclaration; /** * 插入逻辑声明 * @internal * @param logicDeclarationOptions 逻辑声明参数 */ _insertLogicDeclarationAt(logicDeclarationOptions: Partial, index: number): LogicDeclaration; /** * 插入逻辑声明 * @internal * @param logicDeclaration 已有的逻辑声明实例 */ _insertLogicDeclarationAt(logicDeclaration: LogicDeclaration, index: number): LogicDeclaration; /** * 插入逻辑声明 * @param name 逻辑声明名称,如果不填会自动生成一个唯一名称 */ insertLogicDeclarationAt(name: string, index: number): LogicDeclaration; /** * 插入逻辑声明 * @param logicDeclarationOptions 逻辑声明参数 */ insertLogicDeclarationAt(logicDeclarationOptions: Partial, index: number): LogicDeclaration; /** * 插入逻辑声明 * @param logicDeclaration 已有的逻辑声明实例 */ insertLogicDeclarationAt(logicDeclaration: LogicDeclaration, index: number): LogicDeclaration; /** * 添加逻辑声明 * @internal * @param name 逻辑声明名称,如果不填会自动生成一个唯一名称 */ _addLogicDeclaration(name?: string): LogicDeclaration; /** * 添加逻辑声明 * @internal * @param logicDeclarationOptions 逻辑声明参数 */ _addLogicDeclaration(logicDeclarationOptions: Partial): LogicDeclaration; /** * 添加逻辑声明 * @internal * @param logicDeclaration 已有的逻辑声明实例 */ _addLogicDeclaration(logicDeclaration: LogicDeclaration): LogicDeclaration; /** * 添加逻辑声明 * @internal * @param name 逻辑声明名称,如果不填会自动生成一个唯一名称 */ addLogicDeclaration(name?: string): LogicDeclaration; /** * 添加逻辑声明 * @param logicDeclarationOptions 逻辑声明参数 */ addLogicDeclaration(logicDeclarationOptions: Partial): LogicDeclaration; /** * 添加逻辑声明 * @param logicDeclaration 已有的逻辑声明实例 */ addLogicDeclaration(logicDeclaration: LogicDeclaration): LogicDeclaration; getViewComponentDeclarationExistingNames(excludedList?: Array): string[]; getViewComponentDeclarationUniqueName(name?: string): string; /** * 插入页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _insertViewComponentDeclarationAt(name: string, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @internal * @param viewComponentDeclarationOptions 页面组件参数 */ _insertViewComponentDeclarationAt(viewComponentDeclarationOptions: Partial, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @internal * @param viewComponentDeclaration 已有的页面组件实例 */ _insertViewComponentDeclarationAt(viewComponentDeclaration: ViewComponentDeclaration, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ insertViewComponentDeclarationAt(name: string, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @param viewComponentDeclarationOptions 页面组件参数 */ insertViewComponentDeclarationAt(viewComponentDeclarationOptions: Partial, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @param viewComponentDeclaration 已有的页面组件实例 */ insertViewComponentDeclarationAt(viewComponentDeclaration: ViewComponentDeclaration, index: number): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _addViewComponentDeclaration(name?: string): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param viewComponentDeclarationOptions 页面组件参数 */ _addViewComponentDeclaration(viewComponentDeclarationOptions: Partial): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param viewComponentDeclaration 已有的页面组件实例 */ _addViewComponentDeclaration(viewComponentDeclaration: ViewComponentDeclaration): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ addViewComponentDeclaration(name?: string): ViewComponentDeclaration; /** * 添加页面组件 * @param viewComponentDeclarationOptions 页面组件参数 */ addViewComponentDeclaration(viewComponentDeclarationOptions: Partial): ViewComponentDeclaration; /** * 添加页面组件 * @param viewComponentDeclaration 已有的页面组件实例 */ addViewComponentDeclaration(viewComponentDeclaration: ViewComponentDeclaration): ViewComponentDeclaration; getViewBlockWithImageExistingNames(excludedList?: Array): string[]; getViewBlockWithImageUniqueName(name?: string): string; /** * 插入带截图的代码块 * @internal * @param name 带截图的代码块名称,如果不填会自动生成一个唯一名称 */ _insertViewBlockWithImageAt(name: string, index: number): ViewBlockWithImage; /** * 插入带截图的代码块 * @internal * @param viewBlockWithImageOptions 带截图的代码块参数 */ _insertViewBlockWithImageAt(viewBlockWithImageOptions: Partial, index: number): ViewBlockWithImage; /** * 插入带截图的代码块 * @internal * @param viewBlockWithImage 已有的带截图的代码块实例 */ _insertViewBlockWithImageAt(viewBlockWithImage: ViewBlockWithImage, index: number): ViewBlockWithImage; /** * 插入带截图的代码块 * @param name 带截图的代码块名称,如果不填会自动生成一个唯一名称 */ insertViewBlockWithImageAt(name: string, index: number): ViewBlockWithImage; /** * 插入带截图的代码块 * @param viewBlockWithImageOptions 带截图的代码块参数 */ insertViewBlockWithImageAt(viewBlockWithImageOptions: Partial, index: number): ViewBlockWithImage; /** * 插入带截图的代码块 * @param viewBlockWithImage 已有的带截图的代码块实例 */ insertViewBlockWithImageAt(viewBlockWithImage: ViewBlockWithImage, index: number): ViewBlockWithImage; /** * 添加带截图的代码块 * @internal * @param name 带截图的代码块名称,如果不填会自动生成一个唯一名称 */ _addViewBlockWithImage(name?: string): ViewBlockWithImage; /** * 添加带截图的代码块 * @internal * @param viewBlockWithImageOptions 带截图的代码块参数 */ _addViewBlockWithImage(viewBlockWithImageOptions: Partial): ViewBlockWithImage; /** * 添加带截图的代码块 * @internal * @param viewBlockWithImage 已有的带截图的代码块实例 */ _addViewBlockWithImage(viewBlockWithImage: ViewBlockWithImage): ViewBlockWithImage; /** * 添加带截图的代码块 * @internal * @param name 带截图的代码块名称,如果不填会自动生成一个唯一名称 */ addViewBlockWithImage(name?: string): ViewBlockWithImage; /** * 添加带截图的代码块 * @param viewBlockWithImageOptions 带截图的代码块参数 */ addViewBlockWithImage(viewBlockWithImageOptions: Partial): ViewBlockWithImage; /** * 添加带截图的代码块 * @param viewBlockWithImage 已有的带截图的代码块实例 */ addViewBlockWithImage(viewBlockWithImage: ViewBlockWithImage): ViewBlockWithImage; getThemeVariableExistingNames(excludedList?: Array): string[]; getThemeVariableUniqueName(name?: string): string; /** * 插入主题变量 * @internal * @param name 主题变量名称,如果不填会自动生成一个唯一名称 */ _insertThemeVariableAt(name: string, index: number): ThemeVariable; /** * 插入主题变量 * @internal * @param themeVariableOptions 主题变量参数 */ _insertThemeVariableAt(themeVariableOptions: Partial, index: number): ThemeVariable; /** * 插入主题变量 * @internal * @param themeVariable 已有的主题变量实例 */ _insertThemeVariableAt(themeVariable: ThemeVariable, index: number): ThemeVariable; /** * 插入主题变量 * @param name 主题变量名称,如果不填会自动生成一个唯一名称 */ insertThemeVariableAt(name: string, index: number): ThemeVariable; /** * 插入主题变量 * @param themeVariableOptions 主题变量参数 */ insertThemeVariableAt(themeVariableOptions: Partial, index: number): ThemeVariable; /** * 插入主题变量 * @param themeVariable 已有的主题变量实例 */ insertThemeVariableAt(themeVariable: ThemeVariable, index: number): ThemeVariable; /** * 添加主题变量 * @internal * @param name 主题变量名称,如果不填会自动生成一个唯一名称 */ _addThemeVariable(name?: string): ThemeVariable; /** * 添加主题变量 * @internal * @param themeVariableOptions 主题变量参数 */ _addThemeVariable(themeVariableOptions: Partial): ThemeVariable; /** * 添加主题变量 * @internal * @param themeVariable 已有的主题变量实例 */ _addThemeVariable(themeVariable: ThemeVariable): ThemeVariable; /** * 添加主题变量 * @internal * @param name 主题变量名称,如果不填会自动生成一个唯一名称 */ addThemeVariable(name?: string): ThemeVariable; /** * 添加主题变量 * @param themeVariableOptions 主题变量参数 */ addThemeVariable(themeVariableOptions: Partial): ThemeVariable; /** * 添加主题变量 * @param themeVariable 已有的主题变量实例 */ addThemeVariable(themeVariable: ThemeVariable): ThemeVariable; /** * 删除组件属性 * @param name 组件属性名称 */ removePropDeclaration(name: string): void; /** * 删除组件属性 * @param propDeclaration 已有的组件属性实例 */ removePropDeclaration(propDeclaration: PropDeclaration): void; /** * 删除组件属性 * @param name 组件属性名称 */ removePropDeclarationInReadableProps(name: string): void; /** * 删除组件属性 * @param propDeclaration 已有的组件属性实例 */ removePropDeclarationInReadableProps(propDeclaration: PropDeclaration): void; /** * 删除组件事件 * @param name 组件事件名称 */ removeEventDeclaration(name: string): void; /** * 删除组件事件 * @param eventDeclaration 已有的组件事件实例 */ removeEventDeclaration(eventDeclaration: EventDeclaration): void; /** * 删除插槽 * @param name 插槽名称 */ removeSlotDeclaration(name: string): void; /** * 删除插槽 * @param slotDeclaration 已有的插槽实例 */ removeSlotDeclaration(slotDeclaration: SlotDeclaration): void; /** * 删除逻辑声明 * @param name 逻辑声明名称 */ removeLogicDeclaration(name: string): void; /** * 删除逻辑声明 * @param logicDeclaration 已有的逻辑声明实例 */ removeLogicDeclaration(logicDeclaration: LogicDeclaration): void; /** * 删除页面组件 * @param name 页面组件名称 */ removeViewComponentDeclaration(name: string): void; /** * 删除页面组件 * @param viewComponentDeclaration 已有的页面组件实例 */ removeViewComponentDeclaration(viewComponentDeclaration: ViewComponentDeclaration): void; /** * 删除带截图的代码块 * @param name 带截图的代码块名称 */ removeViewBlockWithImage(name: string): void; /** * 删除带截图的代码块 * @param viewBlockWithImage 已有的带截图的代码块实例 */ removeViewBlockWithImage(viewBlockWithImage: ViewBlockWithImage): void; /** * 删除主题变量 * @param name 主题变量名称 */ removeThemeVariable(name: string): void; /** * 删除主题变量 * @param themeVariable 已有的主题变量实例 */ removeThemeVariable(themeVariable: ThemeVariable): void; toNaturalTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState, needAllDeclaration?: boolean): string; } export default ViewComponentDeclaration; //# sourceMappingURL=ViewComponentDeclaration__.d.ts.map