forked from fanruan/fineui
128 changed files with 2174 additions and 2927 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@
|
||||
export declare type _msg = { |
||||
alert: (title: string, message?: string, callback?: (result?: boolean) => void) => void; |
||||
confirm: (title: string, message?: string, callback?: (result: boolean) => void) => void; |
||||
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void; |
||||
toast: (message: string, options?: object, context?: HTMLElement) => void; |
||||
}; |
@ -1,8 +1,4 @@
|
||||
import { _AbstractLabel, AbstractLabel } from "./abstract.label"; |
||||
export interface _Label extends _AbstractLabel { |
||||
doRedMark(...args: any[]): void; |
||||
unRedMark(...args: any[]): void; |
||||
} |
||||
import { AbstractLabel } from "./abstract.label"; |
||||
export declare class Label extends AbstractLabel { |
||||
static xtype: string; |
||||
} |
||||
|
@ -1,7 +1,4 @@
|
||||
import { _Pane, Pane } from "../../base/pane"; |
||||
export interface _LoadingPane extends _Pane { |
||||
__loaded: (...args: any[]) => void; |
||||
} |
||||
import { Pane } from "../../base/pane"; |
||||
export declare class LoadingPane extends Pane { |
||||
__loaded: (...args: any[]) => void; |
||||
} |
||||
|
@ -1,5 +1,3 @@
|
||||
import { AbstractTreeValueChooser, _AbstractTreeValueChooser } from "./abstract.treevaluechooser"; |
||||
export interface _AbstractListTreeValueChooser extends _AbstractTreeValueChooser { |
||||
} |
||||
import { AbstractTreeValueChooser } from "./abstract.treevaluechooser"; |
||||
export declare class AbstractListTreeValueChooser extends AbstractTreeValueChooser { |
||||
} |
||||
|
@ -1,5 +1,3 @@
|
||||
import { _Action, Action } from "./action"; |
||||
export interface _ShowAction extends _Action { |
||||
} |
||||
import { Action } from "./action"; |
||||
export declare class ShowAction extends Action { |
||||
} |
||||
|
@ -1,5 +1,3 @@
|
||||
import { _Behavior, Behavior } from "./behavior"; |
||||
export interface _HighlightBehavior extends _Behavior { |
||||
} |
||||
import { Behavior } from "./behavior"; |
||||
export declare class HighlightBehavior extends Behavior { |
||||
} |
||||
|
@ -1,5 +1,3 @@
|
||||
import { _Behavior, Behavior } from "./behavior"; |
||||
export interface _RedMarkBehavior extends _Behavior { |
||||
} |
||||
import { Behavior } from "./behavior"; |
||||
export declare class RedMarkBehavior extends Behavior { |
||||
} |
||||
|
@ -0,0 +1,5 @@
|
||||
import { Widget } from "../../../core/widget"; |
||||
export declare type _DetectElementResize = { |
||||
addResizeListener: (widget: Widget, fn: Function) => Function; |
||||
removeResizeListener: (widget: Widget, fn: Function) => void; |
||||
}; |
@ -0,0 +1,121 @@
|
||||
import { Widget } from "../../../core/widget"; |
||||
export declare type _DOM = { |
||||
ready: (fn: Function) => void; |
||||
patchProps: (fromElement: any, toElement: any) => void; |
||||
hang: (doms: Widget[]) => DocumentFragment; |
||||
isExist: (obj: Widget) => boolean; |
||||
preloadImages: (srcArray: string[], onload: Function) => void; |
||||
getTextSizeWidth: (text: string, fontSize?: number) => number; |
||||
getTextSizeHeight: (text: string, fontSize?: number) => number; |
||||
getScrollWidth: () => number; |
||||
getImage: (param: string, fillStyle?: string, backgroundColor?: string) => { |
||||
width: number; |
||||
height: number; |
||||
src: string; |
||||
style: string; |
||||
param: string; |
||||
}; |
||||
isColor: (color: string) => boolean; |
||||
isRGBColor: (color: string) => boolean; |
||||
isHexColor: (color: string) => boolean; |
||||
isDarkColor: (hex: string) => boolean; |
||||
getContrastColor: (color: string) => string; |
||||
rgb2hex: (rgbColour: string) => string; |
||||
rgb2json: (rgbColour: string) => { |
||||
r: number; |
||||
g: number; |
||||
b: number; |
||||
}; |
||||
rgba2json: (rgbColour: string) => { |
||||
r: number; |
||||
g: number; |
||||
b: number; |
||||
a: number; |
||||
}; |
||||
json2rgb: (rgb: { |
||||
r: number; |
||||
g: number; |
||||
b: number; |
||||
}) => string; |
||||
json2rgba: (rgba: { |
||||
r: number; |
||||
g: number; |
||||
b: number; |
||||
a: number; |
||||
}) => string; |
||||
int2hex: (strNum: number) => string; |
||||
hex2rgb: (color: string) => string; |
||||
rgba2rgb: (rgbColor: string, bgColor?: string) => string; |
||||
getLeftPosition: (combo: Widget, popup: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getInnerLeftPosition: (combo: Widget, popup?: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getRightPosition: (combo: Widget, popup?: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getInnerRightPosition: (combo: Widget, popup: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getTopPosition: (combo: Widget, popup: Widget, extraHeight?: number) => { |
||||
top: number; |
||||
}; |
||||
getBottomPosition: (combo: Widget, popup?: Widget, extraHeight?: number) => { |
||||
top: number; |
||||
}; |
||||
isLeftSpaceEnough: (combo: Widget, popup: Widget, extraWidth?: number) => boolean; |
||||
isInnerLeftSpaceEnough: (combo: Widget, popup: Widget, extraWidth?: number) => boolean; |
||||
isRightSpaceEnough: (combo: Widget, popup: Widget, extraWidth?: number) => boolean; |
||||
isInnerRightSpaceEnough: (combo: Widget, popup: Widget, extraWidth?: number) => boolean; |
||||
isTopSpaceEnough: (combo: Widget, popup?: Widget, extraHeight?: number) => boolean; |
||||
isBottomSpaceEnough: (combo: Widget, popup?: Widget, extraHeight?: number) => boolean; |
||||
isRightSpaceLarger: (combo: Widget) => boolean; |
||||
isBottomSpaceLarger: (combo: Widget) => boolean; |
||||
getLeftAlignPosition: (combo: Widget, popup: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getLeftAdaptPosition: (combo: Widget, popup: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getRightAlignPosition: (combo: Widget, popup: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getRightAdaptPosition: (combo: Widget, popup: Widget, extraWidth?: number) => { |
||||
left: number; |
||||
}; |
||||
getTopAlignPosition: (combo: Widget, popup: Widget, extraHeight?: number, needAdaptHeight?: boolean) => { |
||||
top: number; |
||||
adaptHeight?: number; |
||||
}; |
||||
getTopAdaptPosition: (combo: Widget, popup: Widget, extraHeight?: number, needAdaptHeight?: boolean) => { |
||||
top: number; |
||||
adaptHeight?: number; |
||||
}; |
||||
getBottomAlignPosition: (combo: Widget, popup: Widget, extraHeight?: number, needAdaptHeight?: boolean) => { |
||||
top: number; |
||||
adaptHeight?: number; |
||||
}; |
||||
getBottomAdaptPosition: (combo: Widget, popup: Widget, extraHeight?: number, needAdaptHeight?: boolean) => { |
||||
top: number; |
||||
adaptHeight?: number; |
||||
}; |
||||
getCenterAdaptPosition: (combo: Widget, popup: Widget) => { |
||||
left: number; |
||||
}; |
||||
getMiddleAdaptPosition: (combo: Widget, popup: Widget) => { |
||||
top: number; |
||||
}; |
||||
getComboPositionByDirections: (combo: Widget, popup: Widget, extraWidth?: number, extraHeight?: number, needAdaptHeight?: number, directions?: number) => { |
||||
dir: string; |
||||
left?: number; |
||||
top?: number; |
||||
change?: string; |
||||
}; |
||||
getComboPosition: (combo: Widget, popup: Widget, extraWidth?: number, extraHeight?: number, needAdaptHeight?: number, directions?: number) => { |
||||
dir: string; |
||||
left?: number; |
||||
top?: number; |
||||
change?: string; |
||||
}; |
||||
}; |
@ -0,0 +1,5 @@
|
||||
export declare type _EventListener = { |
||||
listen: (target: EventTarget, eventType: string, callback: Function) => void; |
||||
capture: (target: EventTarget, eventType: string, callback: Function) => void; |
||||
registerDefault: () => void; |
||||
}; |
@ -0,0 +1,12 @@
|
||||
export declare type _function = { |
||||
isIE: () => boolean; |
||||
getIEVersion: () => number; |
||||
isEdge: () => boolean; |
||||
isChrome: () => boolean; |
||||
isFireFox: () => boolean; |
||||
isOpera: () => boolean; |
||||
isSafari: () => boolean; |
||||
isMac: () => boolean; |
||||
isWindows: () => boolean; |
||||
isSupportCss3: (style: any) => boolean; |
||||
}; |
@ -0,0 +1,10 @@
|
||||
import { _function } from "./function"; |
||||
import { _EventListener } from './eventListener'; |
||||
import { _DetectElementResize } from './detectElementResize'; |
||||
import { _load } from './load'; |
||||
import { _DOM } from './dom'; |
||||
export interface _web extends _function, _load { |
||||
EventListener: _EventListener; |
||||
ResizeDetector: _DetectElementResize; |
||||
DOM: _DOM; |
||||
} |
@ -0,0 +1,3 @@
|
||||
export declare type _load = { |
||||
$import: (src: string, ext?: string, must?: boolean) => void; |
||||
}; |
@ -1,9 +1,4 @@
|
||||
import { Layout, _Layout } from "../layout"; |
||||
export interface _AbsoluteLayout extends _Layout { |
||||
resize(): void; |
||||
stroke<T>(items: T[]): void; |
||||
populate<T>(items?: T[]): void; |
||||
} |
||||
import { Layout } from "../layout"; |
||||
export declare class AbsoluteLayout extends Layout { |
||||
static xtype: string; |
||||
} |
||||
|
@ -1,8 +1,4 @@
|
||||
import { Layout, _Layout } from "../layout"; |
||||
export interface _DefaultLayout extends _Layout { |
||||
resize(): void; |
||||
populate<T>(items?: T[]): void; |
||||
} |
||||
import { Layout } from "../layout"; |
||||
export declare class DefaultLayout extends Layout { |
||||
static xtype: string; |
||||
} |
||||
|
@ -1,8 +1,4 @@
|
||||
import { Layout, _Layout } from "../layout"; |
||||
export interface _VerticalLayout extends _Layout { |
||||
resize(): void; |
||||
populate<T>(items?: T[]): void; |
||||
} |
||||
import { Layout } from "../layout"; |
||||
export declare class VerticalLayout extends Layout { |
||||
static xtype: string; |
||||
} |
||||
|
@ -0,0 +1,10 @@
|
||||
import { Widget } from '../../core/widget'; |
||||
export declare class DynamicYearMonthPopup extends Widget { |
||||
static xtype: string; |
||||
static BUTTON_CLEAR_EVENT_CHANGE: string; |
||||
static BUTTON_lABEL_EVENT_CHANGE: string; |
||||
static BUTTON_OK_EVENT_CHANGE: string; |
||||
static EVENT_CHANGE: string; |
||||
setMinDate(minDate?: string): void; |
||||
setMaxDate(maxDate?: string): void; |
||||
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,6 @@
|
||||
export type _msg = { |
||||
alert: (title: string, message?: string, callback?: (result?: boolean)=>void) => void |
||||
confirm: (title: string, message?: string, callback?: (result: boolean)=>void) => void |
||||
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void |
||||
toast: (message: string, options?: object, context?: HTMLElement ) => void |
||||
} |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue