From 49037d3f55ca5b219f5d87e3414f1779caf56db1 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 4 Jun 2020 15:42:57 +0800 Subject: [PATCH] chore: update library --- dist/lib/base/combination/group.button.d.ts | 2 +- dist/lib/base/pane.d.ts | 9 +++++---- dist/lib/base/single/button/button.node.d.ts | 7 +++++++ dist/lib/base/single/iframe/iframe.d.ts | 7 +++++++ .../abstract.treevaluechooser.d.ts | 20 +++++++++++++++++++ .../abstract.treevaluechooser.list.d.ts | 3 +++ dist/lib/core/base.d.ts | 8 ++++---- .../core/wrapper/layout/layout.absolute.d.ts | 6 ++++++ .../core/wrapper/layout/layout.vertical.d.ts | 5 +++++ dist/lib/fix/fix.d.ts | 1 + dist/lib/fix/fix.ie.d.ts | 1 + dist/lib/index.d.ts | 14 +++++++++++++ dist/lib/widget/downlist/combo.downlist.d.ts | 11 ++++++++++ 13 files changed, 85 insertions(+), 9 deletions(-) create mode 100644 dist/lib/base/single/button/button.node.d.ts create mode 100644 dist/lib/base/single/iframe/iframe.d.ts create mode 100644 dist/lib/component/treevaluechooser/abstract.treevaluechooser.d.ts create mode 100644 dist/lib/component/treevaluechooser/abstract.treevaluechooser.list.d.ts create mode 100644 dist/lib/core/wrapper/layout/layout.absolute.d.ts create mode 100644 dist/lib/core/wrapper/layout/layout.vertical.d.ts create mode 100644 dist/lib/fix/fix.d.ts create mode 100644 dist/lib/fix/fix.ie.d.ts create mode 100644 dist/lib/widget/downlist/combo.downlist.d.ts diff --git a/dist/lib/base/combination/group.button.d.ts b/dist/lib/base/combination/group.button.d.ts index 8147953f50..032afd7453 100644 --- a/dist/lib/base/combination/group.button.d.ts +++ b/dist/lib/base/combination/group.button.d.ts @@ -4,7 +4,7 @@ export interface _ButtonGroup extends _Widget { addItems(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[]; setEnabledValue(v: any): void; diff --git a/dist/lib/base/pane.d.ts b/dist/lib/base/pane.d.ts index 4c4b81a69a..3b4cea3d11 100644 --- a/dist/lib/base/pane.d.ts +++ b/dist/lib/base/pane.d.ts @@ -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; diff --git a/dist/lib/base/single/button/button.node.d.ts b/dist/lib/base/single/button/button.node.d.ts new file mode 100644 index 0000000000..814e0812d1 --- /dev/null +++ b/dist/lib/base/single/button/button.node.d.ts @@ -0,0 +1,7 @@ +import { _BasicButton } from "./button.basic"; +export interface _NodeButton extends _BasicButton { + isOpened: () => void; + setOpened: (b: boolean) => void; + triggerCollapse: () => void; + triggerExpand: () => void; +} diff --git a/dist/lib/base/single/iframe/iframe.d.ts b/dist/lib/base/single/iframe/iframe.d.ts new file mode 100644 index 0000000000..2423842594 --- /dev/null +++ b/dist/lib/base/single/iframe/iframe.d.ts @@ -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; +} diff --git a/dist/lib/component/treevaluechooser/abstract.treevaluechooser.d.ts b/dist/lib/component/treevaluechooser/abstract.treevaluechooser.d.ts new file mode 100644 index 0000000000..aa478c9cb2 --- /dev/null +++ b/dist/lib/component/treevaluechooser/abstract.treevaluechooser.d.ts @@ -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; +} diff --git a/dist/lib/component/treevaluechooser/abstract.treevaluechooser.list.d.ts b/dist/lib/component/treevaluechooser/abstract.treevaluechooser.list.d.ts new file mode 100644 index 0000000000..ff04ff549f --- /dev/null +++ b/dist/lib/component/treevaluechooser/abstract.treevaluechooser.list.d.ts @@ -0,0 +1,3 @@ +import { _AbstractTreeValueChooser } from "./abstract.treevaluechooser"; +export interface _AbstractListTreeValueChooser extends _AbstractTreeValueChooser { +} diff --git a/dist/lib/core/base.d.ts b/dist/lib/core/base.d.ts index 51d2d1cc19..2feceb3122 100644 --- a/dist/lib/core/base.d.ts +++ b/dist/lib/core/base.d.ts @@ -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: (collection: T[] | object | string, callback?: ((index: number, value: T) => void) | object | string, thisArg?: any) => any; map: (collection: T[] | object | string | null | undefined, callback?: ((index: number, value: T) => U) | object | string, thisArg?: any) => U[]; reduce: (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: (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; diff --git a/dist/lib/core/wrapper/layout/layout.absolute.d.ts b/dist/lib/core/wrapper/layout/layout.absolute.d.ts new file mode 100644 index 0000000000..518e7f059a --- /dev/null +++ b/dist/lib/core/wrapper/layout/layout.absolute.d.ts @@ -0,0 +1,6 @@ +import { _Layout } from "../layout"; +export interface _AbsoluteLayout extends _Layout { + resize(): void; + stroke(items: T[]): void; + populate(items?: T[]): void; +} diff --git a/dist/lib/core/wrapper/layout/layout.vertical.d.ts b/dist/lib/core/wrapper/layout/layout.vertical.d.ts new file mode 100644 index 0000000000..0c80f17b8b --- /dev/null +++ b/dist/lib/core/wrapper/layout/layout.vertical.d.ts @@ -0,0 +1,5 @@ +import { _Layout } from "../layout"; +export interface _VerticalLayout extends _Layout { + resize(): void; + populate(items?: T[]): void; +} diff --git a/dist/lib/fix/fix.d.ts b/dist/lib/fix/fix.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/dist/lib/fix/fix.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/dist/lib/fix/fix.ie.d.ts b/dist/lib/fix/fix.ie.d.ts new file mode 100644 index 0000000000..cb0ff5c3b5 --- /dev/null +++ b/dist/lib/fix/fix.ie.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/dist/lib/index.d.ts b/dist/lib/index.d.ts index ff303c8d38..7059b89165 100644 --- a/dist/lib/index.d.ts +++ b/dist/lib/index.d.ts @@ -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 & { 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; diff --git a/dist/lib/widget/downlist/combo.downlist.d.ts b/dist/lib/widget/downlist/combo.downlist.d.ts new file mode 100644 index 0000000000..fc18ee8541 --- /dev/null +++ b/dist/lib/widget/downlist/combo.downlist.d.ts @@ -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; +}