///
///
///
///
declare module "copyright" {
export class FoundationEditorUiCopyright {
static toString(): string;
}
}
declare module "foundation/editor/ui/IUiObject" {
export interface IUiObject {
uniqueId: number;
}
export type IUiObjectMap = {
[key: string]: IUiObject;
};
}
declare module "foundation/editor/ui/IUiResizeable" {
import { IUiObject } from "foundation/editor/ui/IUiObject";
export interface IUiResizeable extends IUiObject {
}
export type IUiResizeableMap = {
[key: string]: IUiResizeable;
};
}
declare module "foundation/editor/ui/IndexSpace" {
export class IndexSpace {
static namespaces(): string[];
}
}
declare module "foundation/editor/ui/UiActionEnum" {
export class UiActionEnum {
static SLIDE_LEFT_IN: string;
static SLIDE_LEFT_OUT: string;
static SLIDE_RIGHT_IN: string;
static SLIDE_RIGHT_OUT: string;
static SLIDE_UP_IN: string;
static SLIDE_UP_OUT: string;
static SLIDE_DOWN_IN: string;
static SLIDE_DOWN_OUT: string;
static doSlideLeftIn(element: any): void;
static doSlideLeftOut(element: any): void;
}
}
declare module "foundation/editor/ui/UiAlignEnum" {
export enum UiAlignEnum {
Unknown = 0,
Left = 1,
LeftPadding = 2,
Center = 3,
Right = 4,
Top = 5,
Middle = 6,
Bottom = 7,
BottomLeft = 8,
BottomRight = 9
}
}
declare module "foundation/editor/ui/UiConstants" {
export class UiConstants {
static TOOLBAR_WIDTH_MAX: number;
static FUNCTION_TOOLBAR_WIDTH_MAX: number;
static TABLE_PAGE_SIZE: number;
}
}
declare module "foundation/editor/ui/UiContextEventEnum" {
export class UiContextEventEnum {
static Login: string;
static Logout: string;
static SessionChanged: string;
}
}
declare module "foundation/editor/ui/UiContext" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
import { UiContextEventEnum } from "foundation/editor/ui/UiContextEventEnum";
export class UiContext extends InstanceObject {
eventCd: UiContextEventEnum;
login: boolean;
width: number;
height: number;
free(): void;
}
}
declare module "foundation/editor/ui/UiControlEventEnum" {
export class UiControlEventEnum {
static Active: string;
static Deactive: string;
}
}
declare module "foundation/editor/ui/base/IUiComponent" {
export interface IUiComponent {
}
}
declare module "foundation/editor/ui/base/IUiControl" {
import { IUiComponent } from "foundation/editor/ui/base/IUiComponent";
export interface IUiControl extends IUiComponent {
}
}
declare module "foundation/editor/ui/config/UiConfig" {
import { InstanceObject } from 'cross/runtime/lang/InstanceObject';
export class UiConfig extends InstanceObject {
name: string;
content: any;
constructor(content?: any);
getConfig(path: string): any;
get(path: string): any;
getNumber(path: string, defaultValue: number): number;
getCode(path: string, code: string): any;
set(code: string, jconfig: any): void;
}
}
declare module "foundation/editor/ui/core/UiObject" {
import * as React from 'react';
import { TypeMaps } from 'cross/runtime/lang/collection/TypeMaps';
import { Class } from 'cross/runtime/lang/reflect/Class';
import { Dispatcher } from 'cross/runtime/lang/Dispatcher';
import { IDispatcher } from 'cross/runtime/lang/IDispatcher';
import { Listener } from 'cross/runtime/lang/Listener';
export interface UiObjectProps {
}
export interface UiObjectState {
}
export class UiObject
extends React.Component
implements IDispatcher {
private static IdCounter;
protected __class: Class;
uniqueId: number;
protected _maps: TypeMaps;
protected _dispatcher: Dispatcher;
constructor(props: any, context?: any);
getClass(): Class;
mapGet(key: string, name: string): any;
mapSet(key: string, name: string, value: any): void;
getDispatcher(): Dispatcher;
findListener(code: any, owner: any, method: Function): Listener;
findListenerWithParameters(code: any, owner: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): Listener;
addListener(code: any, owner: any, method: Function): Listener;
addListenerWithParameters(code: any, owner: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): Listener;
removeListener(code: any, owner: any, method: Function): void;
removeListenerWithParameters(code: any, owner: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): void;
registerListener(code: any, owner: any, method: Function): Listener;
registerListenerWithParameters(code: any, owner: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): Listener;
unregisterListener(code: any, owner: any, method: Function): void;
unregisterListenerWithParameters(code: any, owner: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): void;
listen(dispatcher: IDispatcher, code: any, method: Function): Listener;
listenWithParameters(dispatcher: IDispatcher, code: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): Listener;
unlisten(dispatcher: IDispatcher, code: any, method: Function): void;
unlistenWithParameters(dispatcher: IDispatcher, code: any, method: Function, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): void;
dispatch(code: any, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): void;
tryDispatch(code: any, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any): void;
clearListeners(code: string): void;
clearAllListeners(): void;
dispose(): void;
}
export type UiObjectMap = {
[key: string]: UiObject;
};
}
declare module "foundation/editor/ui/UiObjectInfo" {
export class UiObjectInfo {
typeName: string;
selectClass: any;
namespace: string[];
declareClass: any;
name: string;
order: number;
viewerCodes: string | Array;
}
}
declare module "foundation/editor/ui/UiObjectService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { Types } from 'cross/runtime/lang/collection/Types';
import { Service } from 'cross/runtime/module/Service';
import { UiObjectMap } from "foundation/editor/ui/core/UiObject";
import { IUiResizeable, IUiResizeableMap } from "foundation/editor/ui/IUiResizeable";
import { UiObjectInfo } from "foundation/editor/ui/UiObjectInfo";
export class UiObjectService extends Service {
codeObjects: UiObjectMap;
resizableObjects: IUiResizeableMap;
protected _infoMap: Dictionary>;
constructor();
codeRegister(code: string, object: any): void;
codeUnregister(code: string, object: any): void;
resizeRegister(object: IUiResizeable): void;
resizeUnregister(object: IUiResizeable): void;
findByCode(name: string): any;
findInfos(code: string): Types;
findInfoBySelectElement(code: string, element: any, nameSpace?: string): UiObjectInfo;
findInfoBySelectName(code: string, element: any, nameSpace?: string): UiObjectInfo;
private isType;
syncInfos(code: string): Types;
infoSorter(item1: UiObjectInfo, item2: UiObjectInfo): number;
registeInfo(info: UiObjectInfo): void;
active(): void;
deactive(): void;
}
}
declare module "foundation/editor/ui/core/UiComponent" {
import { RefObject } from 'react';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { IUiComponent } from "foundation/editor/ui/base/IUiComponent";
import { UiObject, UiObjectProps, UiObjectState } from "foundation/editor/ui/core/UiObject";
export interface UiComponentProps extends UiObjectProps {
name?: string;
code?: string;
identity?: string;
}
export interface UiComponentState extends UiObjectState {
}
export class UiComponent extends UiObject
implements IUiComponent {
id: string;
name: string;
code: string;
protected _label: string;
identity: string;
valid: boolean;
props: any;
state: any;
refs: any;
statusMounting: boolean;
statusMount: boolean;
constructor(props: any, context?: any);
get label(): string;
set label(value: string);
createRef(): RefObject;
componentPropsChange(nextProps: any, nextContext: any): void;
UNSAFE_componentWillReceiveProps(nextProps: any, nextContext: any): void;
componentStatusChange(state: any, props: any): void;
UNSAFE_componentWillMount(): void;
componentDidMountAsync(): Promise;
componentDidMount(): void;
UNSAFE_componentWillUpdate(nextProps: any, nextState: any): void;
componentDidUpdate(nextProps: any, nextState: any): void;
componentWillUnmountAsync(): Promise;
componentWillUnmount(): void;
componentDidUnMount(): void;
find(name: string, clazz?: any): any;
findDom(value: any): any;
setMountState(state: any, callback?: any): void;
refresh(context?: any, callback?: any): void;
}
export type UiComponentMap = {
[key: string]: UiComponent;
};
}
declare module "foundation/editor/ui/base/IUiContainer" {
import { IUiControl } from "foundation/editor/ui/base/IUiControl";
export interface IUiContainer extends IUiControl {
}
}
declare module "foundation/editor/ui/UiStorageEnum" {
export class UiStorageEnum {
static Config: string;
}
}
declare module "foundation/editor/ui/config/UiConfigService" {
import { Dictionary } from 'cross/runtime/lang/collection/Dictionary';
import { ResultObject } from 'cross/runtime/lang/ResultObject';
import { Service } from 'cross/runtime/module/Service';
import { DatabaseDeviceService } from 'cross/core/device/database/DatabaseDeviceService';
import { UiConfig } from "foundation/editor/ui/config/UiConfig";
export class UiConfigService extends Service {
protected _configs: Dictionary;
protected _databaseService: DatabaseDeviceService;
findConfig(frameCode: string): UiConfig;
loadConfigAsync(frameCode: string): Promise>;
saveConfigAsync(frameCode: string, config: UiConfig): Promise;
}
}
declare module "foundation/editor/ui/core/UiContainer" {
import * as PropTypes from 'prop-types';
import { Types } from 'cross/runtime/lang/collection/Types';
import { IUiContainer } from "foundation/editor/ui/base/IUiContainer";
import { UiConfigService } from "foundation/editor/ui/config/UiConfigService";
import { UiContext } from "foundation/editor/ui/UiContext";
import { UiControl, UiControlProps, UiControlState } from "foundation/editor/ui/core/UiControl";
export interface UiContainerProps extends UiControlProps {
}
export interface UiContainerState extends UiControlState {
}
export class UiContainer extends UiControl
implements IUiContainer {
static contextTypes: {
parent: PropTypes.Requireable