Browse Source

KERNEL-3025 refactor: fineui中添加一部分基础控件的声明

es6
Kira 5 years ago
parent
commit
5c24c6c1a0
  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.js
  6. 2
      dist/2.0/fineui.min.js.map
  7. 2
      dist/bundle.ie.js.map
  8. 2
      dist/bundle.ie.min.js
  9. 2
      dist/bundle.ie.min.js.map
  10. 2
      dist/bundle.js.map
  11. 2
      dist/bundle.min.js
  12. 2
      dist/bundle.min.js.map
  13. 2
      dist/es5.fineui.js.map
  14. 2
      dist/fineui.ie.js.map
  15. 2
      dist/fineui.ie.min.js
  16. 2
      dist/fineui.ie.min.js.map
  17. 2
      dist/fineui.js.map
  18. 2
      dist/fineui.min.js
  19. 2
      dist/fineui.min.js.map
  20. 2
      dist/ie.fineui.js.map
  21. 22
      dist/lib/base/combination/combo.d.ts
  22. 9
      dist/lib/base/combination/group.button.d.ts
  23. 4
      dist/lib/base/single/button/button.basic.d.ts
  24. 10
      dist/lib/base/single/button/buttons/button.d.ts
  25. 11
      dist/lib/base/single/button/buttons/button.text.d.ts
  26. 10
      dist/lib/base/single/button/listitem/icontextitem.d.ts
  27. 39
      dist/lib/base/single/editor/editor.d.ts
  28. 10
      dist/lib/base/single/label/abstract.label.d.ts
  29. 5
      dist/lib/base/single/label/label.d.ts
  30. 2
      dist/lib/base/single/single.d.ts
  31. 9
      dist/lib/case/button/icon/icon.change.d.ts
  32. 10
      dist/lib/case/button/item.multiselect.d.ts
  33. 17
      dist/lib/case/combo/bubblecombo/combo.bubble.d.ts
  34. 8
      dist/lib/case/combo/combo.textvalue.d.ts
  35. 8
      dist/lib/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.d.ts
  36. 2
      dist/lib/core/base.d.ts
  37. 18
      dist/lib/core/wrapper/layout.d.ts
  38. 13
      dist/lib/core/wrapper/layout/layout.tape.d.ts
  39. 29
      dist/lib/index.d.ts
  40. 2
      dist/utils.min.js
  41. 31
      typescript/base/combination/combo.ts
  42. 10
      typescript/base/combination/group.button.ts
  43. 6
      typescript/base/single/button/button.basic.ts
  44. 17
      typescript/base/single/button/buttons/button.text.ts
  45. 15
      typescript/base/single/button/buttons/button.ts
  46. 15
      typescript/base/single/button/listitem/icontextitem.ts
  47. 56
      typescript/base/single/editor/editor.ts
  48. 17
      typescript/base/single/label/abstract.label.ts
  49. 7
      typescript/base/single/label/label.ts
  50. 4
      typescript/base/single/single.ts
  51. 13
      typescript/case/button/icon/icon.change.ts
  52. 15
      typescript/case/button/item.multiselect.ts
  53. 21
      typescript/case/combo/bubblecombo/combo.bubble.ts
  54. 11
      typescript/case/combo/combo.textvalue.ts
  55. 11
      typescript/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.ts
  56. 2
      typescript/core/base.ts
  57. 33
      typescript/core/wrapper/layout.ts
  58. 21
      typescript/core/wrapper/layout/layout.tape.ts
  59. 29
      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.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.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/fineui.ie.js.map vendored

File diff suppressed because one or more lines are too long

2
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.map vendored

File diff suppressed because one or more lines are too long

2
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

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;
}

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

@ -1,7 +1,7 @@
import { _Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget {
prependItems(items: any): void;
addItems(items: any): void;
prependItems(items: []): void;
addItems(items: []): void;
removeItemAt(indexes: any): void;
removeItems(values: any): void;
populate(items?: any): void;
@ -13,8 +13,9 @@ export interface _ButtonGroup extends _Widget {
getSelectedButtons(): [];
getNotSelectedButtons(): [];
getIndexByValue(value: any): number;
getNodeById(id: any): _Widget;
getNodeByValue(value: any): _Widget;
getNodeById(id: any): any;
getNodeByValue(value: any): any;
getValue(): [];
}
export interface _ButtonGroupChooseType {
CHOOSE_TYPE_SINGLE: number;

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/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;
}

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

@ -0,0 +1,8 @@
import { _Widget } from "../../core/widget";
export interface _TextValueCombo extends _Widget {
getValue(): [];
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(): [];
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(items: [], context?: any): void;
prependItems(items: [], context?: any): void;
getValue(): [];
setText(v: string): void;
update(opt: any): any;
stroke(items: []): void;
removeWidget(nameOrWidget: any): void;
populate(items?: []): 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(items: []): void;
update(): any;
populate(items?: []): void;
}
export interface _VTapeLayout extends _Layout {
resize(): void;
stroke(items: []): void;
update(): void;
populate(items?: []): void;
}

29
dist/lib/index.d.ts vendored

@ -1,10 +1,22 @@
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 { _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";
@ -16,6 +28,8 @@ 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;
@ -26,6 +40,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>;
@ -38,6 +55,18 @@ export interface BI extends _func, _i18n, _base {
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>;
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;
}

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

@ -1,9 +1,9 @@
import { _Widget } from "../../core/widget";
export interface _ButtonGroup extends _Widget {
prependItems(items: any): void;
prependItems(items: []): void;
addItems(items: any): void;
addItems(items: []): void;
removeItemAt(indexes: any): void;
@ -27,9 +27,11 @@ export interface _ButtonGroup extends _Widget {
getIndexByValue(value: any): number;
getNodeById(id: any): _Widget;
getNodeById(id: any): any;
getNodeByValue(value: any): _Widget;
getNodeByValue(value: any): any;
getValue(): [];
}
export interface _ButtonGroupChooseType {

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
}
}

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;
}

11
typescript/case/combo/combo.textvalue.ts

@ -0,0 +1,11 @@
import { _Widget } from "../../core/widget";
export interface _TextValueCombo extends _Widget {
getValue(): [];
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(): [];
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(items: [], context?: any): void;
prependItems(items: [], context?: any): void;
getValue(): [];
setText(v: string): void;
update(opt: any): any;
stroke(items: []): void;
removeWidget(nameOrWidget: any): void;
populate(items?: []): 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(items: []): void;
update(): any;
populate(items?: []): void;
}
export interface _VTapeLayout extends _Layout {
resize(): void;
stroke(items: []): void;
update(): void;
populate(items?: []): void;
}

29
typescript/index.ts

@ -1,10 +1,22 @@
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 { _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";
@ -16,6 +28,8 @@ 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 & {
@ -29,6 +43,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>;
@ -41,6 +58,18 @@ export interface BI extends _func, _i18n, _base {
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>;
Editor: ClassConstructor<_Editor> & _EditorStatic;
Layout: ClassConstructor<_Layout>;
HTapeLayout: ClassConstructor<_HTapeLayout>;
VTapeLayout: ClassConstructor<_VTapeLayout>;
Decorators: typeof decorator;
}

Loading…
Cancel
Save