Browse Source

Merge remote-tracking branch 'origin/master' into bugfix

es6
iapyang 4 years ago
parent
commit
0132008274
  1. 2
      dist/2.0/fineui.css
  2. 4
      dist/2.0/fineui.ie.min.js
  3. 2
      dist/2.0/fineui.ie.min.js.map
  4. 1462
      dist/2.0/fineui.js
  5. 2
      dist/2.0/fineui.js.map
  6. 2
      dist/2.0/fineui.min.css
  7. 4
      dist/2.0/fineui.min.js
  8. 2
      dist/2.0/fineui.min.js.map
  9. 2
      dist/2.0/fineui_without_normalize.css
  10. 2
      dist/2.0/fineui_without_normalize.min.css
  11. 2
      dist/core.css
  12. 1418
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 1802
      dist/demo.js
  16. 2
      dist/demo.js.map
  17. 2
      dist/fineui.css
  18. 4
      dist/fineui.ie.min.js
  19. 2
      dist/fineui.ie.min.js.map
  20. 1476
      dist/fineui.js
  21. 2
      dist/fineui.js.map
  22. 2
      dist/fineui.min.css
  23. 4
      dist/fineui.min.js
  24. 2
      dist/fineui.min.js.map
  25. 488
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 11
      dist/lib/base/single/iframe/iframe.d.ts
  29. 1
      dist/lib/base/tree/ztree/asynctree.d.ts
  30. 2
      dist/lib/base/tree/ztree/treeview.d.ts
  31. 12
      dist/lib/core/base.d.ts
  32. 4
      dist/lib/core/widget.d.ts
  33. 20
      dist/lib/core/wrapper/layout/layout.card.d.ts
  34. 18
      dist/lib/index.d.ts
  35. 12
      dist/lib/widget/multilayerselecttree/multilayerselecttree.combo.d.ts
  36. 12
      dist/lib/widget/multilayersingletree/multilayersingletree.combo.d.ts
  37. 2
      dist/lib/widget/multiselect/multiselect.insert.combo.d.ts
  38. 17
      dist/lib/widget/multitree/multi.tree.insert.combo.d.ts
  39. 16
      dist/lib/widget/multitree/multi.tree.list.combo.d.ts
  40. 11
      dist/lib/widget/time/time.combo.d.ts
  41. 11
      dist/lib/widget/yearmonth/combo.yearmonth.d.ts
  42. 2
      dist/resource.css
  43. 28
      dist/utils.js
  44. 2
      dist/utils.js.map
  45. 4
      dist/utils.min.js
  46. 2
      dist/utils.min.js.map
  47. 2
      package.json
  48. 16
      typescript/base/single/iframe/iframe.ts
  49. 12
      typescript/core/base.ts
  50. 8
      typescript/core/widget.ts
  51. 36
      typescript/core/wrapper/layout/layout.card.ts
  52. 12
      typescript/index.ts
  53. 2
      typescript/widget/multiselect/multiselect.insert.combo.ts
  54. 13
      typescript/widget/time/time.combo.ts
  55. 14
      typescript/widget/yearmonth/combo.yearmonth.ts

2
dist/2.0/fineui.css vendored

File diff suppressed because one or more lines are too long

4
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

1462
dist/2.0/fineui.js vendored

File diff suppressed because it is too large Load Diff

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

4
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/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

2
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

2
dist/core.css vendored

File diff suppressed because one or more lines are too long

1418
dist/core.js vendored

File diff suppressed because it is too large Load Diff

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

1802
dist/demo.js vendored

File diff suppressed because it is too large Load Diff

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.css vendored

File diff suppressed because one or more lines are too long

4
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

1476
dist/fineui.js vendored

File diff suppressed because it is too large Load Diff

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

4
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

488
dist/fineui_without_jquery_polyfill.js vendored

File diff suppressed because it is too large Load Diff

2
dist/fineui_without_jquery_polyfill.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/font.css vendored

File diff suppressed because one or more lines are too long

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

@ -1,7 +1,14 @@
import { _Single } from "../single";
import { Single, _Single } from "../single";
export interface _Iframe extends _Single {
setSrc(v: string): void;
getSrc(): string;
setNam(v: string): void;
setName(v: string): void;
getName(): string;
}
export declare class Iframe extends Single {
static xtype: string;
setSrc(v: string): void;
getSrc(): string;
setName(v: string): void;
getName(): string;
}

1
dist/lib/base/tree/ztree/asynctree.d.ts vendored

@ -1,6 +1,7 @@
import { TreeView, TreeValue } from "./treeview";
export declare class AsyncTree extends TreeView {
static xtype: string;
nodes: any;
_beforeExpandNode<T>(treeId: string, treeNode: T): void;
_join(valueA: TreeValue, valueB: TreeValue): TreeValue;
_getJoinValue(): TreeValue;

2
dist/lib/base/tree/ztree/treeview.d.ts vendored

@ -45,7 +45,7 @@ export declare class TreeView extends Pane {
}): void;
refresh(): void;
getValue(): TreeValue;
populate(config: {
populate(config?: {
[key: string]: any;
}): void;
}

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

@ -26,12 +26,12 @@ export interface _base {
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;
reduceRight: <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;
find: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => any;
filter: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => any[];
reject: <T>(collection: any[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => any[];
every: <T>(collection: any[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
all: <T>(collection: any[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
some: <T>(collection: any[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
find: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => T | undefined;
filter: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => T[];
reject: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => T[];
every: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
all: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
some: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
any: <T>(collection: T[] | object | string, callback?: ((index: number, value: T) => boolean) | object | string, thisArg?: any) => boolean;
max: <T>(collection: T[]) => T;
min: <T>(collection: T[]) => T;

4
dist/lib/core/widget.d.ts vendored

@ -33,6 +33,8 @@ export interface _Widget extends _OB {
element: {
width(): number;
height(): number;
width(width: number | string): _Widget['element'];
height(height: number | string): _Widget['element'];
[key: string]: any;
};
/**
@ -356,6 +358,8 @@ export declare class Widget extends OB {
element: {
width(): number;
height(): number;
width(width: number | string): Widget['element'];
height(height: number | string): Widget['element'];
[key: string]: any;
};
/**

20
dist/lib/core/wrapper/layout/layout.card.d.ts vendored

@ -0,0 +1,20 @@
import { Widget } from "../../widget";
import { Layout } from "../layout";
export declare class CardLayout extends Layout {
static xtype: string;
empty(): void;
isCardExisted(cardName: string): boolean;
getCardByName<T>(name: string): T;
deleteCardByName(cardName: string): void;
addCardByName(cardName: string, cardItem: any): Widget;
showCardByName(cardName: string, action?: any, callback?: () => void): void;
showLastCard(): void;
setDefaultShowName(name: string): void;
getDefaultShowName(): string;
getAllCardNames(): string[];
getShowingCard<T>(): T;
deleteAllCard(): void;
hideAllCard(): void;
isAllCardHide(): boolean;
removeWidget(nameOrWidget: string | Widget): void;
}

18
dist/lib/index.d.ts vendored

@ -8,7 +8,7 @@ import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/but
import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor";
import { _Iframe } from "./base/single/iframe/iframe";
import { Iframe, _Iframe } from "./base/single/iframe/iframe";
import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
@ -105,9 +105,16 @@ import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo";
import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo";
import { CardLayout } from "./core/wrapper/layout/layout.card";
import { DynamicYearMonthCombo } from "./widget/yearmonth/combo.yearmonth";
import { TimeCombo } from "./widget/time/time.combo";
import { ListTreeView } from "./base/tree/ztree/list/listtreeview";
import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree";
import { AsyncTree } from "./base/tree/ztree/asynctree";
import { MultiLayerSingleTreeCombo } from "./widget/multilayersingletree/multilayersingletree.combo";
import { MultiLayerSelectTreeCombo } from "./widget/multilayerselecttree/multilayerselecttree.combo";
import { MultiTreeListCombo } from "./widget/multitree/multi.tree.list.combo";
import { MultiTreeInsertCombo } from "./widget/multitree/multi.tree.insert.combo";
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
@ -162,6 +169,10 @@ export interface BI extends _func, _i18n, _base, _inject {
ListTreeView: typeof ListTreeView;
ListAsyncTree: typeof ListAsyncTree;
AsyncTree: typeof AsyncTree;
MultiLayerSingleTreeCombo: typeof MultiLayerSingleTreeCombo;
MultiLayerSelectTreeCombo: typeof MultiLayerSelectTreeCombo;
MultiTreeListCombo: typeof MultiTreeListCombo;
MultiTreeInsertCombo: typeof MultiTreeInsertCombo;
Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic;
Iframe: ClassConstructor<_Iframe>;
@ -226,9 +237,12 @@ export interface BI extends _func, _i18n, _base, _inject {
SingleSelectRadioItem: typeof SingleSelectRadioItem;
SingleSelectInsertCombo: typeof SingleSelectInsertCombo;
SingleSelectCombo: typeof SingleSelectCombo;
CardLayout: typeof CardLayout;
DynamicYearMonthCombo: typeof DynamicYearMonthCombo;
TimeCombo: typeof TimeCombo;
}
declare const _default: {
Decorators: typeof decorator;
};
export default _default;
export { Widget, Single, BasicButton, Icon, LeftRightVerticalAdaptLayout, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, TriggerIconButton, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiSelectBar, SelectList, TextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, AbstractTreeValueChooser, AbstractListTreeValueChooser, ListTreeValueChooserInsertCombo, TreeValueChooserCombo, TreeValueChooserInsertCombo, MultiLayerSelectTreePopup, MultiLayerSingleTreePopup, TreeView, ListTreeView, ListAsyncTree, AsyncTree, Combo, IconCombo, DynamicDateCombo, Radio, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, AbstractAllValueChooser, AllValueChooserCombo, TextAreaEditor, SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, CenterLayout, VirtualGroup, GridLayout, MultiTreePopup, SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, };
export { Widget, Single, BasicButton, Icon, LeftRightVerticalAdaptLayout, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, TriggerIconButton, Searcher, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, A, Html, Switcher, BubbleCombo, Loader, ListPane, MultiSelectBar, SelectList, TextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, AbstractTreeValueChooser, AbstractListTreeValueChooser, ListTreeValueChooserInsertCombo, TreeValueChooserCombo, TreeValueChooserInsertCombo, MultiLayerSelectTreePopup, MultiLayerSingleTreePopup, TreeView, ListTreeView, ListAsyncTree, AsyncTree, MultiLayerSingleTreeCombo, MultiLayerSelectTreeCombo, MultiTreeListCombo, MultiTreeInsertCombo, Combo, IconCombo, DynamicDateCombo, Radio, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, AbstractAllValueChooser, AllValueChooserCombo, TextAreaEditor, SingleSelectItem, DynamicDateTimeCombo, MultiTreeCombo, CenterLayout, VirtualGroup, GridLayout, MultiTreePopup, SingleSelectRadioItem, SingleSelectInsertCombo, SingleSelectCombo, CardLayout, DynamicYearMonthCombo, TimeCombo, Iframe, };

12
dist/lib/widget/multilayerselecttree/multilayerselecttree.combo.d.ts vendored

@ -0,0 +1,12 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerSelectTreeCombo extends Widget {
static xtype: string;
static EVENT_SEARCHING: string;
static EVENT_BLUR: string;
static EVENT_FOCUS: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
setValue(v: string[] | string): void;
getValue(): string[];
populate<T>(items: T[]): void;
}

12
dist/lib/widget/multilayersingletree/multilayersingletree.combo.d.ts vendored

@ -0,0 +1,12 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerSingleTreeCombo extends Widget {
static xtype: string;
static EVENT_SEARCHING: string;
static EVENT_BLUR: string;
static EVENT_FOCUS: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
setValue(v: string[] | string): void;
getValue(): string[];
populate<T>(items: T[]): void;
}

2
dist/lib/widget/multiselect/multiselect.insert.combo.d.ts vendored

@ -28,7 +28,7 @@ export declare class MultiSelectInsertCombo extends Single {
_populate(...args: any[]): void;
showView(): void;
hideView(): void;
setValue(value: {
setValue(value?: {
type: string;
value: string[];
assist: string[];

17
dist/lib/widget/multitree/multi.tree.insert.combo.d.ts vendored

@ -0,0 +1,17 @@
import { Single } from "../../base/single/single";
import { TreeValue } from "../../base/tree/ztree/treeview";
export declare class MultiTreeInsertCombo extends Single {
static xtype: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_STOP: string;
static EVENT_CLICK_ITEM: string;
static EVENT_SEARCHING: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
showView(): void;
hideView(): void;
setValue(v: TreeValue): void;
getValue(): TreeValue;
populate(): void;
}

16
dist/lib/widget/multitree/multi.tree.list.combo.d.ts vendored

@ -0,0 +1,16 @@
import { Single } from "../../base/single/single";
export declare class MultiTreeListCombo extends Single {
static xtype: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_STOP: string;
static EVENT_CLICK_ITEM: string;
static EVENT_SEARCHING: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
showView(): void;
hideView(): void;
setValue(v: string[]): void;
getValue(): string[];
populate(): void;
}

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

@ -0,0 +1,11 @@
import { Single } from "../../base/single/single";
export declare class TimeCombo extends Single {
static xtype: string;
static EVENT_KEY_DOWN: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_POPUPVIEW: string;
hidePopupView(): void;
}

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

@ -0,0 +1,11 @@
import { Single } from "../../base/single/single";
export declare class DynamicYearMonthCombo extends Single {
static xtype: string;
static EVENT_ERROR: string;
static EVENT_VALID: string;
static EVENT_FOCUS: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
hideView(): void;
getKey(): string;
}

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

28
dist/utils.js vendored

@ -1,4 +1,4 @@
/*! time: 2020-12-17 14:10:24 */
/*! time: 2020-12-18 10:00:58 */
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
@ -82,12 +82,12 @@
/******/
/******/
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 1179);
/******/ return __webpack_require__(__webpack_require__.s = 1187);
/******/ })
/************************************************************************/
/******/ ({
/***/ 1040:
/***/ 1048:
/***/ (function(module, exports) {
BI.i18n = {
@ -315,7 +315,14 @@ if(_global.BI.prepares == null) {
/***/ }),
/***/ 1179:
/***/ 118:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(119)(__webpack_require__(120))
/***/ }),
/***/ 1187:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(117);
@ -345,8 +352,8 @@ __webpack_require__(134);
__webpack_require__(135);
__webpack_require__(136);
__webpack_require__(137);
__webpack_require__(1040);
__webpack_require__(1180);
__webpack_require__(1048);
__webpack_require__(1188);
__webpack_require__(147);
__webpack_require__(148);
module.exports = __webpack_require__(149);
@ -354,14 +361,7 @@ module.exports = __webpack_require__(149);
/***/ }),
/***/ 118:
/***/ (function(module, exports, __webpack_require__) {
__webpack_require__(119)(__webpack_require__(120))
/***/ }),
/***/ 1180:
/***/ 1188:
/***/ (function(module, exports) {
/**

2
dist/utils.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

2
dist/utils.min.js.map vendored

File diff suppressed because one or more lines are too long

2
package.json

@ -1,6 +1,6 @@
{
"name": "fineui",
"version": "2.0.20201217141212",
"version": "2.0.20201218100233",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

16
typescript/base/single/iframe/iframe.ts

@ -1,11 +1,23 @@
import { _Single } from "../single";
import { Single, _Single } from "../single";
export interface _Iframe extends _Single {
setSrc(v: string): void;
getSrc(): string;
setNam(v: string): void;
setName(v: string): void;
getName(): string;
}
export declare class Iframe extends Single {
static xtype: string;
setSrc(v: string): void;
getSrc(): string;
setName(v: string): void;
getName(): string;
}

12
typescript/core/base.ts

@ -46,17 +46,17 @@ export interface _base {
reduceRight: <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;
find: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any;
find: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => T | undefined;
filter: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[];
filter: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => T[];
reject: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => any[];
reject: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => T[];
every: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
every: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
all: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
all: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
some: <T>(collection: any[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
some: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;
any: <T>(collection: T[]|object|string, callback?: ((index: number, value: T) => boolean)|object|string, thisArg?: any) => boolean;

8
typescript/core/widget.ts

@ -42,6 +42,8 @@ export interface _Widget extends _OB {
element: {
width(): number;
height(): number;
width(width: number | string): _Widget['element'];
height(height: number | string): _Widget['element'];
[key: string]: any;
};
@ -79,7 +81,7 @@ export interface _Widget extends _OB {
*
*/
beforeInit?(cb: Function): void;
/**
*
*/
@ -442,6 +444,8 @@ export declare class Widget extends OB {
element: {
width(): number;
height(): number;
width(width: number | string): Widget['element'];
height(height: number | string): Widget['element'];
[key: string]: any;
};
@ -479,7 +483,7 @@ export declare class Widget extends OB {
*
*/
beforeInit?(cb: Function): void;
/**
*
*/

36
typescript/core/wrapper/layout/layout.card.ts

@ -0,0 +1,36 @@
import { Widget } from "../../widget";
import { Layout } from "../layout";
export declare class CardLayout extends Layout {
static xtype: string;
empty(): void;
isCardExisted(cardName: string): boolean;
getCardByName<T>(name: string):T;
deleteCardByName(cardName: string): void;
addCardByName(cardName: string, cardItem: any): Widget
showCardByName(cardName: string, action?: any, callback?: () => void): void;
showLastCard(): void;
setDefaultShowName(name: string): void;
getDefaultShowName(): string;
getAllCardNames(): string[];
getShowingCard<T>(): T;
deleteAllCard(): void;
hideAllCard(): void;
isAllCardHide(): boolean;
removeWidget(nameOrWidget: string | Widget): void;
}

12
typescript/index.ts

@ -8,7 +8,7 @@ import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/but
import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor";
import { _Iframe } from "./base/single/iframe/iframe";
import { Iframe, _Iframe } from "./base/single/iframe/iframe";
import { _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
@ -105,6 +105,9 @@ import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo";
import { SingleSelectCombo } from "./widget/singleselect/singleselect.combo";
import { CardLayout } from "./core/wrapper/layout/layout.card";
import { DynamicYearMonthCombo } from "./widget/yearmonth/combo.yearmonth";
import { TimeCombo } from "./widget/time/time.combo";
import { ListTreeView } from "./base/tree/ztree/list/listtreeview";
import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree";
import { AsyncTree } from "./base/tree/ztree/asynctree";
@ -237,6 +240,9 @@ export interface BI extends _func, _i18n, _base, _inject {
SingleSelectRadioItem: typeof SingleSelectRadioItem;
SingleSelectInsertCombo: typeof SingleSelectInsertCombo;
SingleSelectCombo: typeof SingleSelectCombo;
CardLayout: typeof CardLayout;
DynamicYearMonthCombo: typeof DynamicYearMonthCombo;
TimeCombo: typeof TimeCombo;
}
export default {
@ -339,4 +345,8 @@ export {
SingleSelectRadioItem,
SingleSelectInsertCombo,
SingleSelectCombo,
CardLayout,
DynamicYearMonthCombo,
TimeCombo,
Iframe,
};

2
typescript/widget/multiselect/multiselect.insert.combo.ts

@ -44,7 +44,7 @@ export declare class MultiSelectInsertCombo extends Single {
hideView(): void;
setValue(value: {
setValue(value?: {
type: string;
value: string[];
assist: string[];

13
typescript/widget/time/time.combo.ts

@ -0,0 +1,13 @@
import { Single } from "../../base/single/single";
export declare class TimeCombo extends Single {
static xtype: string;
static EVENT_KEY_DOWN: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_POPUPVIEW: string;
hidePopupView(): void;
}

14
typescript/widget/yearmonth/combo.yearmonth.ts

@ -0,0 +1,14 @@
import { Single } from "../../base/single/single";
export declare class DynamicYearMonthCombo extends Single {
static xtype: string;
static EVENT_ERROR: string;
static EVENT_VALID: string;
static EVENT_FOCUS: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
hideView(): void;
getKey(): string;
}
Loading…
Cancel
Save