Browse Source

Merge pull request #1252 in VISUAL/fineui from ~KIRA/fineui:master to master

* commit 'c397ebfeb9bc926b27d6a458a6d76ab834254716':
  refactor: 数组用泛型表示
  KERNEL-3025 refactor: 补充bi.text
  KERNEL-3025 refactor: 修改部分声明
  KERNEL-3025 refactor: fineui中添加一部分基础控件的声明
  KERNEL-3025 refactor: 添加buttongroup声明
  KERNEL-3025 refactor: 增加bi.tab声明
es6
Kira 4 years ago
parent
commit
7a8e9fabe4
  1. 2
      dist/2.0/fineui.ie.js.map
  2. 2
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 2
      dist/2.0/fineui.js.map
  5. 2
      dist/2.0/fineui.min.css
  6. 2
      dist/2.0/fineui.min.js
  7. 2
      dist/2.0/fineui.min.js.map
  8. 2
      dist/bundle.ie.js.map
  9. 2
      dist/bundle.ie.min.js
  10. 2
      dist/bundle.ie.min.js.map
  11. 2
      dist/bundle.js.map
  12. 2
      dist/bundle.min.css
  13. 2
      dist/bundle.min.js
  14. 2
      dist/bundle.min.js.map
  15. 2
      dist/es5.fineui.js.map
  16. 2
      dist/es5.polyfill.js
  17. 2
      dist/es5.polyfill.js.map
  18. 2
      dist/fineui.ie.js
  19. 2
      dist/fineui.ie.js.map
  20. 104
      dist/fineui.ie.min.js
  21. 2
      dist/fineui.ie.min.js.map
  22. 2
      dist/fineui.js
  23. 2
      dist/fineui.js.map
  24. 2
      dist/fineui.min.css
  25. 107
      dist/fineui.min.js
  26. 2
      dist/fineui.min.js.map
  27. 2
      dist/ie.fineui.js.map
  28. 2
      dist/ie.polyfill.js
  29. 2
      dist/ie.polyfill.js.map
  30. 22
      dist/lib/base/combination/combo.d.ts
  31. 29
      dist/lib/base/combination/group.button.d.ts
  32. 12
      dist/lib/base/combination/tab.d.ts
  33. 4
      dist/lib/base/single/button/button.basic.d.ts
  34. 10
      dist/lib/base/single/button/buttons/button.d.ts
  35. 11
      dist/lib/base/single/button/buttons/button.text.d.ts
  36. 10
      dist/lib/base/single/button/listitem/icontextitem.d.ts
  37. 39
      dist/lib/base/single/editor/editor.d.ts
  38. 10
      dist/lib/base/single/label/abstract.label.d.ts
  39. 5
      dist/lib/base/single/label/label.d.ts
  40. 2
      dist/lib/base/single/single.d.ts
  41. 9
      dist/lib/base/single/text.d.ts
  42. 9
      dist/lib/case/button/icon/icon.change.d.ts
  43. 10
      dist/lib/case/button/item.multiselect.d.ts
  44. 17
      dist/lib/case/combo/bubblecombo/combo.bubble.d.ts
  45. 7
      dist/lib/case/combo/combo.textvalue.d.ts
  46. 8
      dist/lib/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.d.ts
  47. 2
      dist/lib/core/base.d.ts
  48. 18
      dist/lib/core/wrapper/layout.d.ts
  49. 13
      dist/lib/core/wrapper/layout/layout.tape.d.ts
  50. 53
      dist/lib/index.d.ts
  51. 2
      dist/utils.min.js
  52. 31
      typescript/base/combination/combo.ts
  53. 47
      typescript/base/combination/group.button.ts
  54. 19
      typescript/base/combination/tab.ts
  55. 6
      typescript/base/single/button/button.basic.ts
  56. 17
      typescript/base/single/button/buttons/button.text.ts
  57. 15
      typescript/base/single/button/buttons/button.ts
  58. 15
      typescript/base/single/button/listitem/icontextitem.ts
  59. 56
      typescript/base/single/editor/editor.ts
  60. 17
      typescript/base/single/label/abstract.label.ts
  61. 7
      typescript/base/single/label/label.ts
  62. 4
      typescript/base/single/single.ts
  63. 15
      typescript/base/single/text.ts
  64. 13
      typescript/case/button/icon/icon.change.ts
  65. 15
      typescript/case/button/item.multiselect.ts
  66. 21
      typescript/case/combo/bubblecombo/combo.bubble.ts
  67. 9
      typescript/case/combo/combo.textvalue.ts
  68. 11
      typescript/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.ts
  69. 2
      typescript/core/base.ts
  70. 33
      typescript/core/wrapper/layout.ts
  71. 21
      typescript/core/wrapper/layout/layout.tape.ts
  72. 55
      typescript/index.ts

2
dist/2.0/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/bundle.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/es5.fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/es5.polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/es5.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

104
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.ie.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

107
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/ie.polyfill.js vendored

File diff suppressed because one or more lines are too long

2
dist/ie.polyfill.js.map vendored

File diff suppressed because one or more lines are too long

22
dist/lib/base/combination/combo.d.ts vendored

@ -0,0 +1,22 @@
import { _Widget } from "../../core/widget";
export interface _Combo extends _Widget {
populate(items: any): void;
_setEnable(v: boolean): void;
isViewVisible(): boolean;
showView(e?: any): void;
hideView(): void;
getView(): any;
getPopupPosition(): any;
toggle(): void;
}
export interface _ComboStatic {
EVENT_TRIGGER_CHANGE: string;
EVENT_CHANGE: string;
EVENT_EXPAND: string;
EVENT_COLLAPSE: string;
EVENT_AFTER_INIT: string;
EVENT_BEFORE_POPUPVIEW: string;
EVENT_AFTER_POPUPVIEW: string;
EVENT_BEFORE_HIDEVIEW: string;
EVENT_AFTER_HIDEVIEW: string;
}

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

@ -0,0 +1,29 @@
import { _Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget {
prependItems<T>(items: T[]): void;
addItems<T>(items: T[]): void;
removeItemAt(indexes: any): void;
removeItems(values: any): void;
populate(items?: any): void;
setNotSelectedValue(v: any): void;
getNotSelectedValue<T>(): T[];
setEnabledValue(v: any): void;
getAllButtons<T>(): T[];
getAllLeaves<T>(): T[];
getSelectedButtons<T>(): T[];
getNotSelectedButtons<T>(): T[];
getIndexByValue(value: any): number;
getNodeById(id: any): any;
getNodeByValue(value: any): any;
getValue<T>(): T[];
}
export interface _ButtonGroupChooseType {
CHOOSE_TYPE_SINGLE: number;
CHOOSE_TYPE_MULTI: number;
CHOOSE_TYPE_ALL: number;
CHOOSE_TYPE_NONE: number;
CHOOSE_TYPE_DEFAULT: number;
}
export interface _ButtonGroupStatic {
EVENT_CHANGE: string;
}

12
dist/lib/base/combination/tab.d.ts vendored

@ -0,0 +1,12 @@
import { _Widget } from "../../core/widget";
export interface _Tab extends _Widget {
setSelect(v: string | number): void;
removeTab(v: string | number): void;
getSelect(): string | number;
getSelectedTab(): any;
getTab(v: string | number): any;
populate(): void;
}
export interface _TabStatic {
EVENT_CHANGE: string;
}

4
dist/lib/base/single/button/button.basic.d.ts vendored

@ -9,12 +9,14 @@ export interface _BasicButton extends _Single {
handle(): _BasicButton;
hover(): void;
dishover(): void;
setSelected(b: any): void;
setSelected(b: boolean): void;
isSelected(): boolean;
isOnce(): boolean;
isForceSelected(): boolean;
isForceNotSelected(): boolean;
isDisableSelected(): boolean;
setText(v: string): void;
getText(): string;
}
export interface _BasicButtonStatic {
EVENT_CHANGE: string;

10
dist/lib/base/single/button/buttons/button.d.ts vendored

@ -0,0 +1,10 @@
import { _BasicButton } from "../button.basic";
export interface _Button extends _BasicButton {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
}
export interface _ButtonStatic {
EVENT_CHANGE: string;
}

11
dist/lib/base/single/button/buttons/button.text.d.ts vendored

@ -0,0 +1,11 @@
import { _BasicButton } from "../button.basic";
export interface _TextButton extends _BasicButton {
setStyle(style: any): void;
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
}
export interface _TextButtonStatic {
EVENT_CHANGE: string;
}

10
dist/lib/base/single/button/listitem/icontextitem.d.ts vendored

@ -0,0 +1,10 @@
import { _BasicButton } from "../button.basic";
export interface _IconTextItem extends _BasicButton {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
}
export interface _IconTextItemStatic {
EVENT_CHANGE: string;
}

39
dist/lib/base/single/editor/editor.d.ts vendored

@ -0,0 +1,39 @@
import { _Single } from "../single";
export interface _Editor extends _Single {
setErrorText(v: string): void;
getErrorText(): string;
setWaterMark(v: string): void;
disableError(): void;
enableError(): void;
disableWaterMark(): void;
enableWaterMark(): void;
focus(): void;
blur(): void;
selectAll(): void;
onKeyDown(keyCode: number): void;
getValue(): string;
getLastValidValue(): string;
getLastChangedValue(): string;
isEditing(): boolean;
isValid(): boolean;
}
export interface _EditorStatic {
EVENT_CHANGE: string;
EVENT_FOCUS: string;
EVENT_BLUR: string;
EVENT_CLICK: string;
EVENT_KEY_DOWN: string;
EVENT_SPACE: string;
EVENT_BACKSPACE: string;
EVENT_START: string;
EVENT_PAUSE: string;
EVENT_STOP: string;
EVENT_CONFIRM: string;
EVENT_CHANGE_CONFIRM: string;
EVENT_VALID: string;
EVENT_ERROR: string;
EVENT_ENTER: string;
EVENT_RESTRICT: string;
EVENT_REMOVE: string;
EVENT_EMPTY: string;
}

10
dist/lib/base/single/label/abstract.label.d.ts vendored

@ -0,0 +1,10 @@
import { _Single } from "../single";
export interface _AbstractLabel extends _Single {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
setText(v: string): void;
getText(): string;
setStyle(css: any): void;
}

5
dist/lib/base/single/label/label.d.ts vendored

@ -0,0 +1,5 @@
import { _AbstractLabel } from "./abstract.label";
export interface _Label extends _AbstractLabel {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
}

2
dist/lib/base/single/single.d.ts vendored

@ -11,7 +11,7 @@ export interface _Single extends _Widget {
isReadOnly(): boolean;
getTitle(): string;
getWarningTitle(): string;
popluate(..._args: any[]): void;
populate(..._args: any[]): void;
}
interface SingleOpt {
container?: any;

9
dist/lib/base/single/text.d.ts vendored

@ -0,0 +1,9 @@
import { _Single } from "./single";
export interface _Text extends _Single {
doRedMark(keyword: string): void;
unRedMark(): void;
doHighLight(): void;
unHighLight(): void;
setStyle(css: any): void;
setText(v: string): void;
}

9
dist/lib/case/button/icon/icon.change.d.ts vendored

@ -0,0 +1,9 @@
import { _Single } from "../../../base/single/single";
export interface _IconChangeButton extends _Single {
isSelected(): boolean;
setSelected(v: boolean): void;
setIcon(cls: string): void;
}
export interface _IconChangeButtonStatic {
EVENT_CHANGE: string;
}

10
dist/lib/case/button/item.multiselect.d.ts vendored

@ -0,0 +1,10 @@
import { _BasicButton } from "../../base/single/button/button.basic";
export interface _MultiSelectItem extends _BasicButton {
doClick(...args: any): void;
doRedMark(...args: any): void;
unRedMark(...args: any): void;
setSelected(v: boolean): void;
}
export interface _MultiSelectItemStatic {
EVENT_CHANGE: string;
}

17
dist/lib/case/combo/bubblecombo/combo.bubble.d.ts vendored

@ -0,0 +1,17 @@
import { _Widget } from "../../../core/widget";
export interface _BubbleCombo extends _Widget {
hideView(): void;
showView(): void;
isViewVisible(): boolean;
}
export interface _BubbleComboStatic {
EVENT_TRIGGER_CHANGE: string;
EVENT_CHANGE: string;
EVENT_EXPAND: string;
EVENT_COLLAPSE: string;
EVENT_AFTER_INIT: string;
EVENT_BEFORE_POPUPVIEW: string;
EVENT_AFTER_POPUPVIEW: string;
EVENT_BEFORE_HIDEVIEW: string;
EVENT_AFTER_HIDEVIEW: string;
}

7
dist/lib/case/combo/combo.textvalue.d.ts vendored

@ -0,0 +1,7 @@
import { _Widget } from "../../core/widget";
export interface _TextValueCombo extends _Widget {
populate(items: any): void;
}
export interface _TextValueComboStatic {
EVENT_CHANGE: string;
}

8
dist/lib/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.d.ts vendored

@ -0,0 +1,8 @@
import { _Widget } from "../../core/widget";
export interface _AllValueMultiTextValueCombo extends _Widget {
getValue<T>(): T[];
populate(items: any): void;
}
export interface _AllValueMultiTextValueComboStatic {
EVENT_CONFIRM: string;
}

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

@ -178,7 +178,7 @@ export interface _base {
stripQuotes: (string: string) => string;
camelize: (string: string) => string;
hyphenate: (string: string) => string;
isNotEmptyString: (string: string) => boolean;
isNotEmptyString: (string: any) => boolean;
isEmptyString: (str: any) => str is "";
encrypt: (type: string, text: string, key: string) => string;
escape: (string: string) => string;

18
dist/lib/core/wrapper/layout.d.ts vendored

@ -0,0 +1,18 @@
import { _Widget } from "../widget";
export interface _Layout extends _Widget {
addItem(item: any): any;
prependItem(item: any): any;
addItemAt(index: string, item: any): any;
removeItemAt(indexes: any): void;
shouldUpdateItem(index: number, item: any): boolean;
updateItemAt(index: number, item: any): any;
addItems<T>(items: T[], context?: any): void;
prependItems<T>(items: T[], context?: any): void;
getValue<T>(): T[];
setText(v: string): void;
update(opt: any): any;
stroke<T>(items: T[]): void;
removeWidget(nameOrWidget: any): void;
populate<T>(items?: T[]): void;
resize(): void;
}

13
dist/lib/core/wrapper/layout/layout.tape.d.ts vendored

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

53
dist/lib/index.d.ts vendored

@ -1,19 +1,36 @@
import * as decorator from "./core/decorator/decorator";
import { _i18n } from "./core/i18n";
import { _OB } from "./core/ob";
import { _func } from "./core/func";
import { _Widget, _WidgetStatic } from "./core/widget";
import { _Single } from "./base/single/single";
import { _base } from "./core/base";
import { _Combo, _ComboStatic } from "./base/combination/combo";
import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base/combination/group.button";
import { _Tab, _TabStatic } from "./base/combination/tab";
import { _Pane, _PaneStatic } from "./base/pane";
import { _BasicButton, _BasicButtonStatic } from "./base/single/button/button.basic";
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 { _AbstractLabel } from "./base/single/label/abstract.label";
import { _Label } from "./base/single/label/label";
import { _Single } from "./base/single/single";
import { _Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic } from "./case/button/item.multiselect";
import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic } from "./case/combo/combo.textvalue";
import { _LoadingPane } from "./case/loading/loading_pane";
import { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _Action, _ActionFactory } from "./core/action/action";
import { _ShowAction } from "./core/action/action.show";
import { _base } from "./core/base";
import { _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import { _Pane, _PaneStatic } from "./base/pane";
import { _LoadingPane } from "./case/loading/loading_pane";
import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func";
import { _i18n } from "./core/i18n";
import { _OB } from "./core/ob";
import { _Widget, _WidgetStatic } from "./core/widget";
import { _Layout } from "./core/wrapper/layout";
import { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
@ -24,6 +41,9 @@ export interface BI extends _func, _i18n, _base {
Widget: ClassConstructor<_Widget> & _WidgetStatic;
Single: ClassConstructor<_Single>;
BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic;
Button: ClassConstructor<_Button> & _ButtonStatic;
TextButton: ClassConstructor<_TextButton> & _TextButtonStatic;
IconChangeButton: ClassConstructor<_IconChangeButton> & _IconChangeButtonStatic;
Trigger: ClassConstructor<_Trigger>;
Action: ClassConstructor<_Action>;
ActionFactory: ClassConstructor<_ActionFactory>;
@ -34,6 +54,21 @@ export interface BI extends _func, _i18n, _base {
RedMarkBehavior: ClassConstructor<_RedMarkBehavior>;
Pane: ClassConstructor<_Pane> & _PaneStatic;
LoadingPane: ClassConstructor<_LoadingPane>;
Tab: ClassConstructor<_Tab> & _TabStatic;
ButtonGroup: ClassConstructor<_ButtonGroup> & _ButtonGroupChooseType & _ButtonGroupStatic;
Combo: ClassConstructor<_Combo> & _ComboStatic;
TextValueCombo: ClassConstructor<_TextValueCombo> & _TextValueComboStatic;
BubbleCombo: ClassConstructor<_BubbleCombo> & _BubbleComboStatic;
AllValueMultiTextValueCombo: ClassConstructor<_AllValueMultiTextValueCombo> & _AllValueMultiTextValueComboStatic;
IconTextItem: ClassConstructor<_IconTextItem> & _IconTextItemStatic;
MultiSelectItem: ClassConstructor<_MultiSelectItem> & _MultiSelectItemStatic;
AbstractLabel: ClassConstructor<_AbstractLabel>;
Label: ClassConstructor<_Label>;
Text: ClassConstructor<_Text>;
Editor: ClassConstructor<_Editor> & _EditorStatic;
Layout: ClassConstructor<_Layout>;
HTapeLayout: ClassConstructor<_HTapeLayout>;
VTapeLayout: ClassConstructor<_VTapeLayout>;
Decorators: typeof decorator;
}
declare const _default: {

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

31
typescript/base/combination/combo.ts

@ -0,0 +1,31 @@
import { _Widget } from "../../core/widget";
export interface _Combo extends _Widget {
populate(items: any): void;
_setEnable(v: boolean): void;
isViewVisible(): boolean;
showView(e?: any): void;
hideView(): void;
getView(): any;
getPopupPosition(): any;
toggle(): void;
}
export interface _ComboStatic {
EVENT_TRIGGER_CHANGE: string;
EVENT_CHANGE: string;
EVENT_EXPAND: string;
EVENT_COLLAPSE: string;
EVENT_AFTER_INIT: string;
EVENT_BEFORE_POPUPVIEW: string;
EVENT_AFTER_POPUPVIEW: string;
EVENT_BEFORE_HIDEVIEW: string;
EVENT_AFTER_HIDEVIEW: string;
}

47
typescript/base/combination/group.button.ts

@ -0,0 +1,47 @@
import { _Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget {
prependItems<T>(items: T[]): void;
addItems<T>(items: T[]): void;
removeItemAt(indexes: any): void;
removeItems(values: any): void;
populate(items?: any): void;
setNotSelectedValue(v: any): void;
getNotSelectedValue<T>(): T[];
setEnabledValue(v: any): void;
getAllButtons<T>(): T[];
getAllLeaves<T>(): T[];
getSelectedButtons<T>(): T[];
getNotSelectedButtons<T>(): T[];
getIndexByValue(value: any): number;
getNodeById(id: any): any;
getNodeByValue(value: any): any;
getValue<T>(): T[];
}
export interface _ButtonGroupChooseType {
CHOOSE_TYPE_SINGLE: number;
CHOOSE_TYPE_MULTI: number;
CHOOSE_TYPE_ALL: number;
CHOOSE_TYPE_NONE: number;
CHOOSE_TYPE_DEFAULT: number;
}
export interface _ButtonGroupStatic {
EVENT_CHANGE: string;
}

19
typescript/base/combination/tab.ts

@ -0,0 +1,19 @@
import { _Widget } from "../../core/widget";
export interface _Tab extends _Widget {
setSelect(v: string | number): void;
removeTab(v: string | number): void;
getSelect(): string | number;
getSelectedTab(): any;
getTab(v: string | number): any;
populate(): void;
}
export interface _TabStatic {
EVENT_CHANGE: string;
}

6
typescript/base/single/button/button.basic.ts

@ -19,7 +19,7 @@ export interface _BasicButton extends _Single {
dishover(): void;
setSelected(b: any): void;
setSelected(b: boolean): void;
isSelected(): boolean;
@ -30,6 +30,10 @@ export interface _BasicButton extends _Single {
isForceNotSelected(): boolean;
isDisableSelected(): boolean;
setText(v: string): void;
getText(): string;
}
export interface _BasicButtonStatic {

17
typescript/base/single/button/buttons/button.text.ts

@ -0,0 +1,17 @@
import { _BasicButton } from "../button.basic";
export interface _TextButton extends _BasicButton {
setStyle(style: any): void;
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
}
export interface _TextButtonStatic {
EVENT_CHANGE: string;
}

15
typescript/base/single/button/buttons/button.ts

@ -0,0 +1,15 @@
import { _BasicButton } from "../button.basic";
export interface _Button extends _BasicButton {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
}
export interface _ButtonStatic {
EVENT_CHANGE: string;
}

15
typescript/base/single/button/listitem/icontextitem.ts

@ -0,0 +1,15 @@
import { _BasicButton } from "../button.basic";
export interface _IconTextItem extends _BasicButton {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
}
export interface _IconTextItemStatic {
EVENT_CHANGE: string;
}

56
typescript/base/single/editor/editor.ts

@ -0,0 +1,56 @@
import { _Single } from "../single";
export interface _Editor extends _Single {
setErrorText(v: string): void;
getErrorText(): string;
setWaterMark(v: string): void;
disableError(): void;
enableError(): void;
disableWaterMark(): void;
enableWaterMark(): void;
focus(): void;
blur(): void;
selectAll(): void;
onKeyDown(keyCode: number): void;
getValue(): string;
getLastValidValue(): string;
getLastChangedValue(): string;
isEditing(): boolean;
isValid(): boolean;
}
export interface _EditorStatic {
EVENT_CHANGE: string;
EVENT_FOCUS: string;
EVENT_BLUR: string;
EVENT_CLICK: string;
EVENT_KEY_DOWN: string;
EVENT_SPACE: string;
EVENT_BACKSPACE: string;
EVENT_START: string;
EVENT_PAUSE: string;
EVENT_STOP: string;
EVENT_CONFIRM: string;
EVENT_CHANGE_CONFIRM: string;
EVENT_VALID: string;
EVENT_ERROR: string;
EVENT_ENTER: string;
EVENT_RESTRICT: string;
EVENT_REMOVE: string;
EVENT_EMPTY: string;
}

17
typescript/base/single/label/abstract.label.ts

@ -0,0 +1,17 @@
import { _Single } from "../single";
export interface _AbstractLabel extends _Single {
doRedMark(...args: any): void;
unRedMark(...args: any): void;
doHighLight(...args: any): void;
unHighLight(...args: any): void;
setText(v: string): void;
getText(): string;
setStyle(css: any): void;
}

7
typescript/base/single/label/label.ts

@ -0,0 +1,7 @@
import { _AbstractLabel } from "./abstract.label";
export interface _Label extends _AbstractLabel {
doRedMark(...args: any): void;
unRedMark(...args: any): void
}

4
typescript/base/single/single.ts

@ -23,9 +23,9 @@ export interface _Single extends _Widget {
getWarningTitle(): string;
popluate(..._args: any[]): void;
populate(..._args: any[]): void;
}
interface SingleOpt {
container?: any, belowMouse?: boolean
}
}

15
typescript/base/single/text.ts

@ -0,0 +1,15 @@
import { _Single } from "./single";
export interface _Text extends _Single {
doRedMark(keyword: string): void;
unRedMark(): void;
doHighLight(): void;
unHighLight(): void;
setStyle(css: any): void;
setText(v: string): void;
}

13
typescript/case/button/icon/icon.change.ts

@ -0,0 +1,13 @@
import { _Single } from "../../../base/single/single";
export interface _IconChangeButton extends _Single {
isSelected(): boolean;
setSelected(v: boolean): void;
setIcon(cls: string): void;
}
export interface _IconChangeButtonStatic {
EVENT_CHANGE: string;
}

15
typescript/case/button/item.multiselect.ts

@ -0,0 +1,15 @@
import { _BasicButton } from "../../base/single/button/button.basic";
export interface _MultiSelectItem extends _BasicButton {
doClick(...args: any): void;
doRedMark(...args: any): void;
unRedMark(...args: any): void;
setSelected(v: boolean): void;
}
export interface _MultiSelectItemStatic {
EVENT_CHANGE: string;
}

21
typescript/case/combo/bubblecombo/combo.bubble.ts

@ -0,0 +1,21 @@
import { _Widget } from "../../../core/widget";
export interface _BubbleCombo extends _Widget {
hideView(): void;
showView(): void;
isViewVisible(): boolean;
}
export interface _BubbleComboStatic {
EVENT_TRIGGER_CHANGE: string;
EVENT_CHANGE: string;
EVENT_EXPAND: string;
EVENT_COLLAPSE: string;
EVENT_AFTER_INIT: string;
EVENT_BEFORE_POPUPVIEW: string;
EVENT_AFTER_POPUPVIEW: string;
EVENT_BEFORE_HIDEVIEW: string;
EVENT_AFTER_HIDEVIEW: string;
}

9
typescript/case/combo/combo.textvalue.ts

@ -0,0 +1,9 @@
import { _Widget } from "../../core/widget";
export interface _TextValueCombo extends _Widget {
populate(items: any): void;
}
export interface _TextValueComboStatic {
EVENT_CHANGE: string;
}

11
typescript/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.ts

@ -0,0 +1,11 @@
import { _Widget } from "../../core/widget";
export interface _AllValueMultiTextValueCombo extends _Widget {
getValue<T>(): T[];
populate(items: any): void;
}
export interface _AllValueMultiTextValueComboStatic {
EVENT_CONFIRM: string;
}

2
typescript/core/base.ts

@ -349,7 +349,7 @@ export interface _base {
hyphenate: (string: string) => string;
isNotEmptyString: (string: string) => boolean;
isNotEmptyString: (string: any) => boolean;
isEmptyString: (str: any) => str is "";

33
typescript/core/wrapper/layout.ts

@ -0,0 +1,33 @@
import { _Widget } from "../widget";
export interface _Layout extends _Widget {
addItem(item: any): any;
prependItem(item: any): any;
addItemAt(index: string, item: any): any;
removeItemAt(indexes: any): void;
shouldUpdateItem(index: number, item: any): boolean;
updateItemAt(index: number, item: any): any;
addItems<T>(items: T[], context?: any): void;
prependItems<T>(items: T[], context?: any): void;
getValue<T>(): T[];
setText(v: string): void;
update(opt: any): any;
stroke<T>(items: T[]): void;
removeWidget(nameOrWidget: any): void;
populate<T>(items?: T[]): void;
resize(): void;
}

21
typescript/core/wrapper/layout/layout.tape.ts

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

55
typescript/index.ts

@ -1,20 +1,37 @@
import * as decorator from "./core/decorator/decorator";
import { _i18n } from "./core/i18n";
import { _OB } from "./core/ob";
import { _func } from "./core/func";
import { _Widget, _WidgetStatic } from "./core/widget";
import { _Single } from "./base/single/single";
import { _base } from "./core/base";
import { _Combo, _ComboStatic } from "./base/combination/combo";
import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic } from "./base/combination/group.button";
import { _Tab, _TabStatic } from "./base/combination/tab";
import { _Pane, _PaneStatic } from "./base/pane";
import { _BasicButton, _BasicButtonStatic } from "./base/single/button/button.basic";
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 { _AbstractLabel } from "./base/single/label/abstract.label";
import { _Label } from "./base/single/label/label";
import { _Single } from "./base/single/single";
import { _Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic } from "./case/button/item.multiselect";
import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic } from "./case/combo/combo.textvalue";
import { _LoadingPane } from "./case/loading/loading_pane";
import { _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _Action, _ActionFactory } from "./core/action/action";
import { _ShowAction } from "./core/action/action.show";
import { _base } from "./core/base";
import { _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import { _Pane, _PaneStatic } from "./base/pane";
import { _LoadingPane } from "./case/loading/loading_pane";
import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func";
import { _i18n } from "./core/i18n";
import { _OB } from "./core/ob";
import { _Widget, _WidgetStatic } from "./core/widget";
import { _Layout } from "./core/wrapper/layout";
import { _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
type ClassConstructor<T extends {}> = T & {
new(config: any): T;
@ -27,6 +44,9 @@ export interface BI extends _func, _i18n, _base {
Widget: ClassConstructor<_Widget> & _WidgetStatic;
Single: ClassConstructor<_Single>;
BasicButton: ClassConstructor<_BasicButton> & _BasicButtonStatic;
Button: ClassConstructor<_Button> & _ButtonStatic;
TextButton: ClassConstructor<_TextButton> & _TextButtonStatic;
IconChangeButton: ClassConstructor<_IconChangeButton> & _IconChangeButtonStatic;
Trigger: ClassConstructor<_Trigger>;
Action: ClassConstructor<_Action>;
ActionFactory: ClassConstructor<_ActionFactory>;
@ -37,6 +57,21 @@ export interface BI extends _func, _i18n, _base {
RedMarkBehavior: ClassConstructor<_RedMarkBehavior>;
Pane: ClassConstructor<_Pane> & _PaneStatic;
LoadingPane: ClassConstructor<_LoadingPane>;
Tab: ClassConstructor<_Tab> & _TabStatic;
ButtonGroup: ClassConstructor<_ButtonGroup> & _ButtonGroupChooseType & _ButtonGroupStatic;
Combo: ClassConstructor<_Combo> & _ComboStatic;
TextValueCombo: ClassConstructor<_TextValueCombo> & _TextValueComboStatic;
BubbleCombo: ClassConstructor<_BubbleCombo> & _BubbleComboStatic;
AllValueMultiTextValueCombo: ClassConstructor<_AllValueMultiTextValueCombo> & _AllValueMultiTextValueComboStatic;
IconTextItem: ClassConstructor<_IconTextItem> & _IconTextItemStatic;
MultiSelectItem: ClassConstructor<_MultiSelectItem> & _MultiSelectItemStatic;
AbstractLabel: ClassConstructor<_AbstractLabel>;
Label: ClassConstructor<_Label>;
Text: ClassConstructor<_Text>;
Editor: ClassConstructor<_Editor> & _EditorStatic;
Layout: ClassConstructor<_Layout>;
HTapeLayout: ClassConstructor<_HTapeLayout>;
VTapeLayout: ClassConstructor<_VTapeLayout>;
Decorators: typeof decorator;
}

Loading…
Cancel
Save