Browse Source

chore: update library

master
iapyang 5 years ago
parent
commit
49037d3f55
  1. 2
      dist/lib/base/combination/group.button.d.ts
  2. 9
      dist/lib/base/pane.d.ts
  3. 7
      dist/lib/base/single/button/button.node.d.ts
  4. 7
      dist/lib/base/single/iframe/iframe.d.ts
  5. 20
      dist/lib/component/treevaluechooser/abstract.treevaluechooser.d.ts
  6. 3
      dist/lib/component/treevaluechooser/abstract.treevaluechooser.list.d.ts
  7. 8
      dist/lib/core/base.d.ts
  8. 6
      dist/lib/core/wrapper/layout/layout.absolute.d.ts
  9. 5
      dist/lib/core/wrapper/layout/layout.vertical.d.ts
  10. 1
      dist/lib/fix/fix.d.ts
  11. 1
      dist/lib/fix/fix.ie.d.ts
  12. 14
      dist/lib/index.d.ts
  13. 11
      dist/lib/widget/downlist/combo.downlist.d.ts

2
dist/lib/base/combination/group.button.d.ts vendored

@ -4,7 +4,7 @@ export interface _ButtonGroup extends _Widget {
addItems<T>(items: T[]): void;
removeItemAt(indexes: any): void;
removeItems(values: any): void;
populate(items?: any): void;
populate(items?: any, ...args: any[]): void;
setNotSelectedValue(v: any): void;
getNotSelectedValue<T>(): T[];
setEnabledValue(v: any): void;

9
dist/lib/base/pane.d.ts vendored

@ -1,9 +1,10 @@
import { _Widget } from "../core/widget";
export interface _Pane extends _Widget {
_assertTip: (..._args: any[]) => void;
loading: (..._args: any[]) => void;
loaded: (..._args: any[]) => void;
check: (..._args: any[]) => void;
_assertTip(..._args: any[]): void;
loading(..._args: any[]): void;
loaded(..._args: any[]): void;
check(..._args: any[]): void;
populate(...args: any[]): void;
}
export interface _PaneStatic {
EVENT_LOADED: string;

7
dist/lib/base/single/button/button.node.d.ts vendored

@ -0,0 +1,7 @@
import { _BasicButton } from "./button.basic";
export interface _NodeButton extends _BasicButton {
isOpened: () => void;
setOpened: (b: boolean) => void;
triggerCollapse: () => void;
triggerExpand: () => void;
}

7
dist/lib/base/single/iframe/iframe.d.ts vendored

@ -0,0 +1,7 @@
import { _Single } from "../single";
export interface _Iframe extends _Single {
setSrc(v: string): void;
getSrc(): string;
setNam(v: string): void;
getName(): string;
}

20
dist/lib/component/treevaluechooser/abstract.treevaluechooser.d.ts vendored

@ -0,0 +1,20 @@
import { _Widget } from "../../core/widget";
export interface _AbstractTreeValueChooser extends _Widget {
_valueFormatter: (v: string) => string;
_initData: (items: any[]) => void;
_itemsCreator: (options: any, callback: Function) => void;
_reqDisplayTreeNode: (options: any, callback: Function) => void;
_reqSelectedTreeNode: (options: any, callback: Function) => void;
_reqAdjustTreeNode: (options: any, callback: Function) => void;
_reqInitTreeNode: (options: any, callback: Function) => void;
_reqTreeNode: (options: any, callback: Function) => void;
_getAddedValueNode: (parentValues: any[], selectedValues: any) => any[];
_getNode: (selectedValues: any, parentValues: any[]) => any;
_deleteNode: (selectedValues: any, values: any[]) => void;
_buildTree: (jo: any, values: any) => void;
_isMatch: (parentValues: any, value: any, keyword: any) => boolean;
_getTreeNode: (parentValues: any, v: any) => any;
_getChildren: (parentValues: any) => any;
_getAllChildren: (parentValues: any) => any;
_getChildCount: (parentValues: any) => number;
}

3
dist/lib/component/treevaluechooser/abstract.treevaluechooser.list.d.ts vendored

@ -0,0 +1,3 @@
import { _AbstractTreeValueChooser } from "./abstract.treevaluechooser";
export interface _AbstractListTreeValueChooser extends _AbstractTreeValueChooser {
}

8
dist/lib/core/base.d.ts vendored

@ -21,7 +21,7 @@ export interface _base {
shuffle: (collection: any[] | object | string) => any[];
sample: (collection: any[] | object | string, n?: number) => any[];
toArray: (collection: any[] | object | string) => any[];
size: (collection: any[] | object | string) => number;
size: (collection: any) => number;
each: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => void) | object | string, thisArg?: any) => any;
map: <T, U>(collection: T[] | object | string | null | undefined, callback?: ((index: number, value: T) => U) | object | string, thisArg?: any) => U[];
reduce: <T, U>(collection: T[] | object | string, callback?: ((total: U extends T ? U : T, currentValue: T, currentIndex: number) => U extends T ? U : T) | object | string, initialValue?: U | T) => U extends T ? U : T;
@ -131,7 +131,7 @@ export interface _base {
length: 0;
};
isNotEmptyArray: <T, U>(arr: T[] | U) => arr is [T, ...T[]];
isEmptyObject: (obj: any) => obj is object;
isEmptyObject: (obj: any) => boolean;
isNotEmptyObject: (obj: any) => obj is object;
isWindow: (obj: any) => obj is Window;
isDeepMatch: (object: any, attrs: any) => boolean;
@ -168,8 +168,8 @@ export interface _base {
isFloat: (value: string | number) => boolean;
isOdd: (value: string | number) => boolean;
isEven: (value: string | number) => boolean;
sum: (array: any[], iteratee: Function, context: any) => number;
average: (array: any[], iteratee: Function, context: any) => number;
sum: (array: any[], iteratee?: Function, context?: any) => number;
average: (array: any[], iteratee?: Function, context?: any) => number;
trim: (string?: string, chars?: string) => string;
toUpperCase: (string: string) => string;
toLowerCase: (string: string) => string;

6
dist/lib/core/wrapper/layout/layout.absolute.d.ts vendored

@ -0,0 +1,6 @@
import { _Layout } from "../layout";
export interface _AbsoluteLayout extends _Layout {
resize(): void;
stroke<T>(items: T[]): void;
populate<T>(items?: T[]): void;
}

5
dist/lib/core/wrapper/layout/layout.vertical.d.ts vendored

@ -0,0 +1,5 @@
import { _Layout } from "../layout";
export interface _VerticalLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}

1
dist/lib/fix/fix.d.ts vendored

@ -0,0 +1 @@
export {};

1
dist/lib/fix/fix.ie.d.ts vendored

@ -0,0 +1 @@
export {};

14
dist/lib/index.d.ts vendored

@ -3,10 +3,12 @@ import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base
import { _Tab, _TabStatic } from "./base/combination/tab";
import { _Pane, _PaneStatic } from "./base/pane";
import { _BasicButton, _BasicButtonStatic } from "./base/single/button/button.basic";
import { _NodeButton } from "./base/single/button/button.node";
import { _Button, _ButtonStatic } from "./base/single/button/buttons/button";
import { _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic } from "./base/single/editor/editor";
import { _Iframe } from "./base/single/iframe/iframe";
import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { _AbstractLabel } from "./base/single/label/abstract.label";
import { _Label } from "./base/single/label/label";
@ -20,6 +22,8 @@ import { _TextValueCombo, _TextValueComboStatic } from "./case/combo/combo.textv
import { _SignEditor, _SignEditorStatic } from "./case/editor/editor.sign";
import { _LoadingPane } from "./case/loading/loading_pane";
import { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
import { _AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list";
import { _Action, _ActionFactory } from "./core/action/action";
import { _ShowAction } from "./core/action/action.show";
import { _base } from "./core/base";
@ -32,7 +36,10 @@ import { _i18n } from "./core/i18n";
import { _OB } from "./core/ob";
import { _Widget, _WidgetStatic } from "./core/widget";
import { _Layout } from "./core/wrapper/layout";
import { _AbsoluteLayout } from "./core/wrapper/layout/layout.absolute";
import { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { _VerticalLayout } from "./core/wrapper/layout/layout.vertical";
import { _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist";
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
@ -43,6 +50,7 @@ export interface BI extends _func, _i18n, _base {
Widget: ClassConstructor<_Widget> & _WidgetStatic;
Single: ClassConstructor<_Single>;
BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic;
NodeButton: ClassConstructor<_NodeButton>;
Checkbox: ClassConstructor<_Checkbox> & _CheckboxStatic;
Button: ClassConstructor<_Button> & _ButtonStatic;
TextButton: ClassConstructor<_TextButton> & _TextButtonStatic;
@ -73,7 +81,13 @@ export interface BI extends _func, _i18n, _base {
Layout: ClassConstructor<_Layout>;
HTapeLayout: ClassConstructor<_HTapeLayout>;
VTapeLayout: ClassConstructor<_VTapeLayout>;
AbstractTreeValueChooser: ClassConstructor<_AbstractTreeValueChooser>;
AbstractListTreeValueChooser: ClassConstructor<_AbstractListTreeValueChooser>;
Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic;
Iframe: ClassConstructor<_Iframe>;
AbsoluteLayout: ClassConstructor<_AbsoluteLayout>;
VerticalLayout: ClassConstructor<_VerticalLayout>;
}
declare const _default: {
Decorators: typeof decorator;

11
dist/lib/widget/downlist/combo.downlist.d.ts vendored

@ -0,0 +1,11 @@
import { _Widget } from "../../core/widget";
export interface _DownListCombo extends _Widget {
hideView: () => void;
showView: (e?: any) => void;
populate: (items?: any) => void;
}
export interface _DownListComboStatic {
EVENT_CHANGE: string;
EVENT_SON_VALUE_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string;
}
Loading…
Cancel
Save