Browse Source

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

es6
iapyang 4 years ago
parent
commit
5e94646aea
  1. 2
      changelog.md
  2. 4
      dist/2.0/fineui.css
  3. 4
      dist/2.0/fineui.ie.min.js
  4. 2
      dist/2.0/fineui.ie.min.js.map
  5. 3670
      dist/2.0/fineui.js
  6. 2
      dist/2.0/fineui.js.map
  7. 4
      dist/2.0/fineui.min.css
  8. 4
      dist/2.0/fineui.min.js
  9. 2
      dist/2.0/fineui.min.js.map
  10. 4
      dist/2.0/fineui_without_normalize.css
  11. 4
      dist/2.0/fineui_without_normalize.min.css
  12. 4
      dist/core.css
  13. 3628
      dist/core.js
  14. 2
      dist/core.js.map
  15. 4
      dist/demo.css
  16. 4028
      dist/demo.js
  17. 2
      dist/demo.js.map
  18. 4
      dist/fineui.css
  19. 4
      dist/fineui.ie.min.js
  20. 2
      dist/fineui.ie.min.js.map
  21. 3704
      dist/fineui.js
  22. 2
      dist/fineui.js.map
  23. 4
      dist/fineui.min.css
  24. 4
      dist/fineui.min.js
  25. 2
      dist/fineui.min.js.map
  26. 1716
      dist/fineui_without_jquery_polyfill.js
  27. 2
      dist/fineui_without_jquery_polyfill.js.map
  28. 2
      dist/font.css
  29. 11
      dist/lib/base/pane.d.ts
  30. 10
      dist/lib/base/single/text.d.ts
  31. 8
      dist/lib/case/colorchooser/colorchooser.simple.d.ts
  32. 37
      dist/lib/case/editor/editor.sign.d.ts
  33. 1
      dist/lib/core/wrapper/layout.d.ts
  34. 4
      dist/lib/core/wrapper/layout/adapt/absolute.center.d.ts
  35. 4
      dist/lib/core/wrapper/layout/adapt/adapt.center.d.ts
  36. 4
      dist/lib/core/wrapper/layout/adapt/adapt.horizontal.d.ts
  37. 4
      dist/lib/core/wrapper/layout/adapt/adapt.vertical.d.ts
  38. 5
      dist/lib/core/wrapper/layout/layout.absolute.d.ts
  39. 5
      dist/lib/core/wrapper/layout/layout.default.d.ts
  40. 4
      dist/lib/core/wrapper/layout/layout.flow.d.ts
  41. 8
      dist/lib/core/wrapper/layout/layout.tape.d.ts
  42. 5
      dist/lib/core/wrapper/layout/layout.vertical.d.ts
  43. 42
      dist/lib/index.d.ts
  44. 18
      dist/lib/widget/editor/editor.multifile.d.ts
  45. 31
      dist/lib/widget/editor/editor.search.d.ts
  46. 4
      dist/lib/widget/editor/editor.text.small.d.ts
  47. 10
      dist/lib/widget/multilayersingletree/multilayersingletree.leveltree.d.ts
  48. 40
      dist/lib/widget/multiselect/multiselect.combo.d.ts
  49. 42
      dist/lib/widget/multiselect/multiselect.insert.combo.d.ts
  50. 2
      dist/resource.css
  51. 2
      dist/resource.js
  52. 520
      dist/utils.js
  53. 2
      dist/utils.js.map
  54. 4
      dist/utils.min.js
  55. 2
      dist/utils.min.js.map
  56. 2
      i18n/i18n.cn.js
  57. 2
      package.json
  58. 15
      src/base/single/editor/editor.js
  59. 4
      src/base/single/editor/editor.multifile.js
  60. 12
      src/base/single/input/file.js
  61. 4
      src/less/widget/multitree/trigger/multi.tree.button.checkselected.less
  62. 9
      src/widget/multiselect/multiselect.combo.js
  63. 9
      src/widget/multiselect/multiselect.combo.nobar.js
  64. 11
      src/widget/multiselect/multiselect.insert.combo.js
  65. 7
      src/widget/multiselect/multiselect.insert.combo.nobar.js
  66. 2
      src/widget/multitree/trigger/multi.tree.button.checkselected.js
  67. 6
      src/widget/multitree/trigger/searcher.multi.tree.js
  68. 7
      src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js
  69. 13
      typescript/base/pane.ts
  70. 16
      typescript/base/single/text.ts
  71. 12
      typescript/case/colorchooser/colorchooser.simple.ts
  72. 53
      typescript/case/editor/editor.sign.ts
  73. 2
      typescript/core/wrapper/layout/adapt/inline.vertical.ts
  74. 30
      typescript/index.ts
  75. 24
      typescript/widget/editor/editor.multifile.ts
  76. 41
      typescript/widget/editor/editor.search.ts
  77. 5
      typescript/widget/editor/editor.text.small.ts
  78. 2
      typescript/widget/editor/editor.text.ts
  79. 16
      typescript/widget/multilayersingletree/multilayersingletree.leveltree.ts
  80. 57
      typescript/widget/multiselect/multiselect.combo.ts
  81. 60
      typescript/widget/multiselect/multiselect.insert.combo.ts

2
changelog.md

@ -1,5 +1,7 @@
# 更新日志
2.0(2020-12)
- 文件上传控件新增API(setMaxFileLength)以动态设置最大上传文件数量
- 复选下拉树显示查看已选效果改成和复选下拉列表一致
- Pane系列提供small和big两种大小的加载动画
- 同步树列表系列支持不显示节点连接线和展开收起图标
- 规范了下拉树trigger中显示值的显示顺序

4
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

3670
dist/2.0/fineui.js 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

4
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

4
dist/2.0/fineui_without_normalize.css vendored

File diff suppressed because one or more lines are too long

4
dist/2.0/fineui_without_normalize.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/core.css vendored

File diff suppressed because one or more lines are too long

3628
dist/core.js vendored

File diff suppressed because one or more lines are too long

2
dist/core.js.map vendored

File diff suppressed because one or more lines are too long

4
dist/demo.css vendored

File diff suppressed because one or more lines are too long

4028
dist/demo.js vendored

File diff suppressed because one or more lines are too long

2
dist/demo.js.map vendored

File diff suppressed because one or more lines are too long

4
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

3704
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

4
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

1716
dist/fineui_without_jquery_polyfill.js vendored

File diff suppressed because one or more lines are too long

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/pane.d.ts vendored

@ -1,4 +1,4 @@
import { _Widget } from "../core/widget";
import { _Widget, Widget } from "../core/widget";
export interface _Pane extends _Widget {
_assertTip(..._args: any[]): void;
loading(..._args: any[]): void;
@ -9,3 +9,12 @@ export interface _Pane extends _Widget {
export interface _PaneStatic {
EVENT_LOADED: string;
}
export declare class Pane extends Widget {
static EVENT_LOADED: string;
_assertTip(..._args: any[]): void;
loading(): void;
loaded(): void;
check(): void;
setTipVisible(b: boolean): void;
populate(items?: any[]): void;
}

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

@ -1,4 +1,4 @@
import { _Single } from "./single";
import { _Single, Single } from "./single";
export interface _Text extends _Single {
doRedMark(keyword: string): void;
unRedMark(): void;
@ -7,3 +7,11 @@ export interface _Text extends _Single {
setStyle(css: any): void;
setText(v: string): void;
}
export declare class Text extends Single {
static xtype: string;
doRedMark(keyword: string): void;
unRedMark(): void;
doHighLight(): void;
unHighLight(): void;
setStyle(css: any): void;
}

8
dist/lib/case/colorchooser/colorchooser.simple.d.ts vendored

@ -0,0 +1,8 @@
import { Widget } from '../../core/widget';
export declare class SimpleColorChooser extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
isViewVisible(): boolean;
hideView(): void;
showView(): void;
}

37
dist/lib/case/editor/editor.sign.d.ts vendored

@ -1,4 +1,4 @@
import { _Widget } from "../../core/widget";
import { Widget, _Widget } from "../../core/widget";
export interface _SignEditor extends _Widget {
setTitle(v: string | Function): void;
setWarningTitle(v: string | Function): void;
@ -36,3 +36,38 @@ export interface _SignEditorStatic {
EVENT_SPACE: string;
EVENT_EMPTY: string;
}
export declare class SignEditor extends Widget {
static xtype: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CHANGE: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_CLICK_LABEL: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_SPACE: string;
static EVENT_EMPTY: string;
setTitle(v: string | Function): void;
setWarningTitle(v: string | Function): void;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
getLastChangedValue(): string;
getState(): any;
setState(...args: any[]): void;
}

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

@ -17,6 +17,7 @@ export interface _Layout extends _Widget {
resize(): void;
}
export declare class Layout extends Widget {
static xtype: string;
addItem(item: any): any;
prependItem(item: any): any;
addItemAt(index: string, item: any): any;

4
dist/lib/core/wrapper/layout/adapt/absolute.center.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../../layout";
export declare class AbsoluteCenterLayout extends Layout {
static xtype: string;
}

4
dist/lib/core/wrapper/layout/adapt/adapt.center.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../../layout";
export declare class CenterAdaptLayout extends Layout {
static xtype: string;
}

4
dist/lib/core/wrapper/layout/adapt/adapt.horizontal.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../../layout";
export declare class HorizontalAdaptLayout extends Layout {
static xtype: string;
}

4
dist/lib/core/wrapper/layout/adapt/adapt.vertical.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../../layout";
export declare class VerticalAdaptLayout extends Layout {
static xtype: string;
}

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

@ -1,6 +1,9 @@
import { _Layout } from "../layout";
import { Layout, _Layout } from "../layout";
export interface _AbsoluteLayout extends _Layout {
resize(): void;
stroke<T>(items: T[]): void;
populate<T>(items?: T[]): void;
}
export declare class AbsoluteLayout extends Layout {
static xtype: string;
}

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

@ -1,5 +1,8 @@
import { _Layout } from "../layout";
import { Layout, _Layout } from "../layout";
export interface _DefaultLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class DefaultLayout extends Layout {
static xtype: string;
}

4
dist/lib/core/wrapper/layout/layout.flow.d.ts vendored

@ -0,0 +1,4 @@
import { Layout } from "../layout";
export declare class FloatLeftLayout extends Layout {
static xtype: string;
}

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

@ -1,4 +1,4 @@
import { _Layout } from "../layout";
import { _Layout, Layout } from "../layout";
export interface _HTapeLayout extends _Layout {
resize(): void;
stroke<T>(items: T[]): void;
@ -11,3 +11,9 @@ export interface _VTapeLayout extends _Layout {
update(): void;
populate<T>(items?: T[]): void;
}
export declare class HTapeLayout extends Layout {
static xtype: string;
}
export declare class VTapeLayout extends Layout {
static xtype: string;
}

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

@ -1,5 +1,8 @@
import { _Layout } from "../layout";
import { Layout, _Layout } from "../layout";
export interface _VerticalLayout extends _Layout {
resize(): void;
populate<T>(items?: T[]): void;
}
export declare class VerticalLayout extends Layout {
static xtype: string;
}

42
dist/lib/index.d.ts vendored

@ -1,7 +1,7 @@
import { _Combo, _ComboStatic } from "./base/combination/combo";
import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic, ButtonGroup } from "./base/combination/group.button";
import { _Tab, _TabStatic, Tab } from "./base/combination/tab";
import { _Pane, _PaneStatic } from "./base/pane";
import { _Pane, _PaneStatic, Pane } from "./base/pane";
import { _BasicButton, _BasicButtonStatic, BasicButton } from "./base/single/button/button.basic";
import { _NodeButton, NodeButton } from "./base/single/button/button.node";
import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/button";
@ -14,14 +14,14 @@ import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
import { _Label, Label } from "./base/single/label/label";
import { _Single, Single } from "./base/single/single";
import { _Text } from "./base/single/text";
import { _Text, Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { IconChangeButton, _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic, MultiSelectItem } from "./case/button/item.multiselect";
import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic, TextValueCombo } from "./case/combo/combo.textvalue";
import { _SearchTextValueCombo, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { _SignEditor, _SignEditorStatic } from "./case/editor/editor.sign";
import { _SignEditor, _SignEditorStatic, SignEditor } 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";
@ -39,11 +39,11 @@ import { _Plugin } from "./core/plugin";
import { _OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget";
import { _inject } from "./core/inject";
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 { _DefaultLayout } from "./core/wrapper/layout/layout.default";
import { Layout, _Layout } from "./core/wrapper/layout";
import { AbsoluteLayout, _AbsoluteLayout } from "./core/wrapper/layout/layout.absolute";
import { HTapeLayout, VTapeLayout, _HTapeLayout, _VTapeLayout } from "./core/wrapper/layout/layout.tape";
import { VerticalLayout, _VerticalLayout } from "./core/wrapper/layout/layout.vertical";
import { DefaultLayout, _DefaultLayout } from "./core/wrapper/layout/layout.default";
import { DownListCombo, _DownListCombo, _DownListComboStatic } from "./widget/downlist/combo.downlist";
import { Icon } from "./base/single/icon/icon";
import { _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical";
@ -64,6 +64,18 @@ import { IconArrowNode } from "./case/button/node/node.icon.arrow";
import { MidTreeLeafItem } from "./case/button/treeitem/item.mid.treeleaf";
import { FirstTreeLeafItem } from "./case/button/treeitem/item.first.treeleaf";
import { LastTreeLeafItem } from "./case/button/treeitem/item.last.treeleaf";
import { SmallTextEditor } from "./widget/editor/editor.text.small";
import { MultifileEditor } from "./widget/editor/editor.multifile";
import { AbsoluteCenterLayout } from "./core/wrapper/layout/adapt/absolute.center";
import { HorizontalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.horizontal";
import { FloatLeftLayout } from "./core/wrapper/layout/layout.flow";
import { CenterAdaptLayout } from "./core/wrapper/layout/adapt/adapt.center";
import { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical";
import { MultiSelectInsertCombo } from "./widget/multiselect/multiselect.insert.combo";
import { MultiSelectCombo } from "./widget/multiselect/multiselect.combo";
import { SearchEditor } from "./widget/editor/editor.search";
import { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree";
import { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple";
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
@ -125,6 +137,11 @@ export interface BI extends _func, _i18n, _base, _inject {
InlineVerticalAdaptLayout: typeof InlineVerticalAdaptLayout;
RightVerticalAdaptLayout: typeof RightVerticalAdaptLayout;
TableAdaptLayout: typeof TableAdaptLayout;
AbsoluteCenterLayout: typeof AbsoluteCenterLayout;
HorizontalAdaptLayout: typeof HorizontalAdaptLayout;
FloatLeftLayout: typeof FloatLeftLayout;
CenterAdaptLayout: typeof CenterAdaptLayout;
VerticalAdaptLayout: typeof VerticalAdaptLayout;
IconButton: typeof IconButton;
TextEditor: typeof TextEditor;
IconLabel: typeof IconLabel;
@ -138,9 +155,16 @@ export interface BI extends _func, _i18n, _base, _inject {
MidTreeLeafItem: typeof MidTreeLeafItem;
FirstTreeLeafItem: typeof FirstTreeLeafItem;
LastTreeLeafItem: typeof LastTreeLeafItem;
SmallTextEditor: typeof SmallTextEditor;
MultifileEditor: typeof MultifileEditor;
MultiSelectInsertCombo: typeof MultiSelectInsertCombo;
MultiSelectCombo: typeof MultiSelectCombo;
SearchEditor: typeof SearchEditor;
MultiLayerSingleLevelTree: typeof MultiLayerSingleLevelTree;
SimpleColorChooser: typeof SimpleColorChooser;
}
declare const _default: {
Decorators: typeof decorator;
};
export default _default;
export { Widget, Single, BasicButton, Icon, LeftRightVerticalAdaptLayout, IconTextIconItem, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, IconButton, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, TextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, IconCombo, DynamicDateCombo, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, };
export { Widget, Single, BasicButton, Icon, LeftRightVerticalAdaptLayout, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, AbstractLabel, Label, TextButton, DownListCombo, IconChangeButton, Button, TextEditor, TextValueCombo, Editor, IconLabel, Popover, BarPopover, Tab, IconCombo, DynamicDateCombo, MultiSelectItem, CustomTree, ButtonGroup, ButtonTree, NodeButton, IconArrowNode, MidTreeLeafItem, FirstTreeLeafItem, LastTreeLeafItem, SmallTextEditor, MultifileEditor, SignEditor, MultiSelectInsertCombo, MultiSelectCombo, SearchEditor, Text, Pane, MultiLayerSingleLevelTree, SimpleColorChooser, };

18
dist/lib/widget/editor/editor.multifile.d.ts vendored

@ -0,0 +1,18 @@
import { Widget } from "../../core/widget";
export declare class MultifileEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_UPLOADSTART: string;
static EVENT_ERROR: string;
static EVENT_PROGRESS: string;
static EVENT_UPLOADED: string;
_reset(): void;
select(): void;
getValue(): {
attach_id: string;
attach_type: string;
filename: string;
}[];
upload(): void;
reset(): void;
}

31
dist/lib/widget/editor/editor.search.d.ts vendored

@ -0,0 +1,31 @@
import { Widget } from '../../core/widget';
export declare class SearchEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_SPACE: string;
static EVENT_BACKSPACE: string;
static EVENT_CLEAR: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_REMOVE: string;
static EVENT_EMPTY: string;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
getKeywords(): string[];
getLastValidValue(): string;
getLastChangedValue(): string;
isEditing(): boolean;
isValid(): boolean;
}

4
dist/lib/widget/editor/editor.text.small.d.ts vendored

@ -0,0 +1,4 @@
import { TextEditor } from "./editor.text";
export declare class SmallTextEditor extends TextEditor {
static xtype: string;
}

10
dist/lib/widget/multilayersingletree/multilayersingletree.leveltree.d.ts vendored

@ -0,0 +1,10 @@
import { Pane } from '../../base/pane';
export declare class MultiLayerSingleLevelTree extends Pane {
static xtype: string;
static EVENT_CHANGE: string;
initTree(nodes: any, ...args: any[]): void;
populate(nodes: any, ...args: any[]): void;
getAllLeaves<T>(): T[];
getNodeById(id: any): any;
getNodeByValue(value: any): any;
}

40
dist/lib/widget/multiselect/multiselect.combo.d.ts vendored

@ -0,0 +1,40 @@
import { Single } from "../../base/single/single";
export declare class MultiSelectCombo extends Single {
static xtype: string;
static EVENT_BLUR: string;
static EVENT_FOCUS: string;
static EVENT_STOP: string;
static EVENT_SEARCHING: string;
static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
_itemsCreator4Trigger(op: any, callback: Function): void;
_stopEditing(): void;
_defaultState(): void;
_assertValue(): void;
_makeMap(): Obj;
_joinKeywords(keywords: string[], callback: Function): void;
_joinAll(res: {
type: string;
value: string[];
assist: string[];
}, callback: Function): void;
_adjust(callback: Function): void;
_join(): void;
_setStartValue(value: string): void;
_populate(...args: any[]): void;
showView(): void;
hideView(): void;
setValue(value: {
type: string;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
value: string[];
assist: string[];
};
populate(...args: any[]): void;
}

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

@ -0,0 +1,42 @@
import { Single } from "../../base/single/single";
export declare class MultiSelectInsertCombo extends Single {
static xtype: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_STOP: string;
static EVENT_SEARCHING: string;
static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string;
static EVENT_ADD_ITEM: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
_itemsCreator4Trigger(op: any, callback: Function): void;
_addItem(assertShowValue: () => void, matched: boolean): void;
_stopEditing(): void;
_defaultState(): void;
_assertValue(): void;
_makeMap(): Obj;
_joinKeywords(keywords: string[], callback: Function): void;
_joinAll(res: {
type: string;
value: string[];
assist: string[];
}, callback: Function): void;
_adjust(callback: Function): void;
_join(): void;
_setStartValue(value: string): void;
_populate(...args: any[]): void;
showView(): void;
hideView(): void;
setValue(value: {
type: string;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
value: string[];
assist: string[];
};
populate(...args: any[]): void;
}

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

2
dist/resource.js vendored

@ -92,7 +92,7 @@ BI.i18n = {
"BI-Summary_Values": "汇总",
"BI-Basic_Clear": "清除",
"BI-Upload_File_Size_Error": "文件大小不支持",
"BI-Upload_File_Count_Error": "超出上传数量上限,请重新上传",
"BI-Upload_File_Count_Error": "超出上传数量上限{R1},请重新上传",
"BI-Up_Page": "向上翻页",
"BI-Basic_Simple_Sunday": "日",
"BI-Multi_Date_Relative_Current_Time": "相对当前时间",

520
dist/utils.js vendored

File diff suppressed because one or more lines are too long

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
i18n/i18n.cn.js

@ -91,7 +91,7 @@ BI.i18n = {
"BI-Summary_Values": "汇总",
"BI-Basic_Clear": "清除",
"BI-Upload_File_Size_Error": "文件大小不支持",
"BI-Upload_File_Count_Error": "超出上传数量上限,请重新上传",
"BI-Upload_File_Count_Error": "超出上传数量上限{R1},请重新上传",
"BI-Up_Page": "向上翻页",
"BI-Basic_Simple_Sunday": "日",
"BI-Multi_Date_Relative_Current_Time": "相对当前时间",

2
package.json

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

15
src/base/single/editor/editor.js

@ -53,7 +53,7 @@ BI.Editor = BI.inherit(BI.Single, {
var items = [{
el: {
type: "bi.absolute",
ref: function(_ref) {
ref: function (_ref) {
self.contentWrapper = _ref;
},
items: [{
@ -183,14 +183,15 @@ BI.Editor = BI.inherit(BI.Single, {
}
},
_assertWaterMark: function() {
_assertWaterMark: function () {
var self = this, o = this.options;
if(BI.isNull(this.watermark)) {
if (BI.isNull(this.watermark)) {
this.watermark = BI.createWidget({
type: "bi.label",
cls: "bi-water-mark",
text: this.options.watermark,
height: o.height - 2 * o.vgap - o.tgap,
hgap: 2,
whiteSpace: "nowrap",
textAlign: "left"
});
@ -237,7 +238,7 @@ BI.Editor = BI.inherit(BI.Single, {
return this.options.errorText;
},
setWaterMark: function(v) {
setWaterMark: function (v) {
if (!BI.isKey(v)) {
return;
}
@ -251,8 +252,8 @@ BI.Editor = BI.inherit(BI.Single, {
element: this.contentWrapper,
items: [{
el: this.watermark,
left: 3,
right: 3,
left: 0,
right: 0,
top: 0,
bottom: 0,
}],
@ -368,4 +369,4 @@ BI.Editor.EVENT_RESTRICT = "EVENT_RESTRICT";
BI.Editor.EVENT_REMOVE = "EVENT_REMOVE";
BI.Editor.EVENT_EMPTY = "EVENT_EMPTY";
BI.shortcut("bi.editor", BI.Editor);
BI.shortcut("bi.editor", BI.Editor);

4
src/base/single/editor/editor.multifile.js

@ -71,6 +71,10 @@ BI.MultifileEditor = BI.inherit(BI.Widget, {
this.file.reset();
},
setMaxFileLength: function (v) {
this.file.setMaxFileLength(v);
},
select: function () {
this.file.select();
},

12
src/base/single/input/file.js

@ -545,13 +545,12 @@
},
_events: function (wrap) {
var self = this;
var self = this, o = this.options;
event.add(wrap.dom.input, "change", function () {
event.del(wrap.dom.input, "change", arguments.callee);
var input = wrap.dom.input.cloneNode(true);
var files = F(wrap.dom.input);
if (wrap.maxLength !== -1 && wrap.maxLength < files.length) {
BI.Msg.toast(BI.i18nText("BI-Upload_File_Count_Error"), { level: "error" });
if (o.maxLength !== -1 && o.maxLength < files.length) {
self.fireEvent(BI.File.EVENT_ERROR, {
errorType: 2
});
@ -655,6 +654,13 @@
});
},
setMaxFileLength: function(v) {
this.options.maxLength = v;
if (this.wrap) {
this.wrap.maxLength = v;
}
},
select: function () {
this.wrap && BI.Widget._renderEngine.createElement(this.wrap.dom.input).click();
},

4
src/less/widget/multitree/trigger/multi.tree.button.checkselected.less

@ -5,4 +5,8 @@
color: @color-bi-text-highlight;
z-index: 1;
}
.trigger-check-text {
.border-radius(8px);
z-index: 1;
}
}

9
src/widget/multiselect/multiselect.combo.js

@ -92,6 +92,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
assertShowValue();
self.populate();
self._setStartValue("");
self._dataChange = true;
});
}
});
@ -109,6 +110,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
self.combo.setValue(self.storeValue);
assertShowValue();
}
self._dataChange = true;
});
}
self.fireEvent(BI.MultiSelectCombo.EVENT_SEARCHING);
@ -124,6 +126,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
assertShowValue();
});
}
self._dataChange = true;
self.fireEvent(BI.MultiSelectCombo.EVENT_CLICK_ITEM);
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {
@ -153,6 +156,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
listeners: [{
eventName: BI.MultiSelectPopupView.EVENT_CHANGE,
action: function () {
self._dataChange = true;
self.storeValue = this.getValue();
self._adjust(function () {
assertShowValue();
@ -190,6 +194,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
});
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self._dataChange = false;// 标记数据是否发生变化
this.setValue(self.storeValue);
BI.nextTick(function () {
self._populate();
@ -203,7 +208,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
if (self.requesting === true) {
self.wants2Quit = true;
} else {
self.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM);
}
});
@ -390,7 +395,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
callback();
function adjust () {
if (self.wants2Quit === true) {
self.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectCombo.EVENT_CONFIRM);
self.wants2Quit = false;
}
self.requesting = false;

9
src/widget/multiselect/multiselect.combo.nobar.js

@ -100,6 +100,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
self.combo.setValue(self.storeValue);
assertShowValue();
}
self._dataChange = true;
});
}
});
@ -114,6 +115,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
assertShowValue();
});
}
self._dataChange = true;
self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CLICK_ITEM);
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {
@ -143,6 +145,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
listeners: [{
eventName: BI.MultiSelectPopupView.EVENT_CHANGE,
action: function () {
self._dataChange = true;
self.storeValue = this.getValue();
self._adjust(function () {
assertShowValue();
@ -184,6 +187,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
});
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self._dataChange = false;// 标记数据是否发生变化
this.setValue(self.storeValue);
BI.nextTick(function () {
self._populate();
@ -197,7 +201,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
if (self.requesting === true) {
self.wants2Quit = true;
} else {
self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM);
}
});
@ -302,6 +306,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
assertShowValue();
self.populate();
self._setStartValue("");
self._dataChange = true;
});
},
@ -407,7 +412,7 @@ BI.MultiSelectNoBarCombo = BI.inherit(BI.Single, {
function adjust() {
if (self.wants2Quit === true) {
self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectNoBarCombo.EVENT_CONFIRM);
self.wants2Quit = false;
}
self.requesting = false;

11
src/widget/multiselect/multiselect.insert.combo.js

@ -104,6 +104,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
self.combo.setValue(self.storeValue);
assertShowValue();
}
self._dataChange = true;
});
}
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_SEARCHING);
@ -119,6 +120,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
assertShowValue();
});
}
self._dataChange = true;
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CLICK_ITEM);
});
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {
@ -148,6 +150,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
listeners: [{
eventName: BI.MultiSelectPopupView.EVENT_CHANGE,
action: function () {
self._dataChange = true;
self.storeValue = this.getValue();
self._adjust(function () {
assertShowValue();
@ -186,6 +189,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
});
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self._dataChange = false;// 标记数据是否发生变化
this.setValue(self.storeValue);
BI.nextTick(function () {
self._populate();
@ -199,7 +203,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
if (self.requesting === true) {
self.wants2Quit = true;
} else {
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM);
}
});
@ -218,7 +222,6 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
}
});
this.numberCounter = BI.createWidget({
type: "bi.multi_select_check_selected_switcher",
masker: {
@ -260,7 +263,6 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
}
});
BI.createWidget({
type: "bi.absolute",
element: this,
@ -314,6 +316,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
assertShowValue();
self.populate();
self._setStartValue("");
self._dataChange = true;
});
},
@ -407,7 +410,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
callback();
function adjust () {
if (self.wants2Quit === true) {
self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectInsertCombo.EVENT_CONFIRM);
self.wants2Quit = false;
}
self.requesting = false;

7
src/widget/multiselect/multiselect.insert.combo.nobar.js

@ -99,6 +99,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
self.combo.setValue(self.storeValue);
assertShowValue();
}
self._dataChange = true;
});
}
});
@ -113,6 +114,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
assertShowValue();
});
}
self._dataChange = true;
});
this.trigger.on(BI.MultiSelectInsertTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {
// counter的值随点击项的改变而改变, 点击counter的时候不需要setValue(counter会请求刷新计数)
@ -141,6 +143,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
listeners: [{
eventName: BI.MultiSelectPopupView.EVENT_CHANGE,
action: function () {
self._dataChange = true;
self.storeValue = this.getValue();
self._adjust(function () {
assertShowValue();
@ -181,6 +184,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
});
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self._dataChange = false;// 标记数据是否发生变化
this.setValue(self.storeValue);
BI.nextTick(function () {
self._populate();
@ -194,7 +198,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
if (self.requesting === true) {
self.wants2Quit = true;
} else {
self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.MultiSelectInsertNoBarCombo.EVENT_CONFIRM);
}
});
@ -310,6 +314,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
assertShowValue();
self.populate();
self._setStartValue("");
self._dataChange = true;
});
},

2
src/widget/multitree/trigger/multi.tree.button.checkselected.js

@ -26,7 +26,7 @@ BI.MultiTreeCheckSelectedButton = BI.inherit(BI.Single, {
this.checkSelected = BI.createWidget({
type: "bi.text_button",
cls: "trigger-check-selected",
cls: "bi-high-light-background trigger-check-text",
invisible: true,
hgap: 4,
text: BI.i18nText("BI-Check_Selected"),

6
src/widget/multitree/trigger/searcher.multi.tree.js

@ -132,8 +132,10 @@ BI.MultiTreeSearcher = BI.inherit(BI.Widget, {
this.editor.setState(BI.Selection.None);
} else {
var text = "";
BI.each(ob.value, function (name, children) {
var childNodes = getChildrenNode(children);
var value = ob.value;
var names = BI.Func.getSortedResult(BI.keys(value));
BI.each(names, function (idx, name) {
var childNodes = getChildrenNode(value[name]);
text += (o.valueFormatter(name + "") || name) + (childNodes === "" ? "" : (":" + childNodes)) + "; ";
if (childNodes === "") {
count++;

7
src/widget/searchmultitextvaluecombo/multitextvalue.combo.search.js

@ -81,6 +81,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
assertShowValue();
self._populate();
self._setStartValue("");
self._dataChange = true;
});
}
});
@ -98,6 +99,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
self.combo.setValue(self.storeValue);
assertShowValue();
}
self._dataChange = true;
});
}
});
@ -112,6 +114,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
assertShowValue();
});
}
self._dataChange = true;
});
this.trigger.on(BI.MultiSelectTrigger.EVENT_BEFORE_COUNTER_POPUPVIEW, function () {
this.getCounter().setValue(self.storeValue);
@ -137,6 +140,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
listeners: [{
eventName: BI.MultiSelectPopupView.EVENT_CHANGE,
action: function () {
self._dataChange = true;
self.storeValue = this.getValue();
self._adjust(function () {
assertShowValue();
@ -172,6 +176,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
});
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self._dataChange = false;// 标记数据是否发生变化
this.setValue(self.storeValue);
BI.nextTick(function () {
self._populate();
@ -189,7 +194,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
* 在存在标红的情况如果popover没有发生改变就确认需要同步trigger的值否则对外value值和trigger样式不统一
*/
assertShowValue();
self.fireEvent(BI.SearchMultiTextValueCombo.EVENT_CONFIRM);
self._dataChange && self.fireEvent(BI.SearchMultiTextValueCombo.EVENT_CONFIRM);
}
});

13
typescript/base/pane.ts

@ -1,4 +1,4 @@
import { _Widget } from "../core/widget";
import { _Widget, Widget } from "../core/widget";
export interface _Pane extends _Widget {
_assertTip(..._args: any[]): void;
@ -11,3 +11,14 @@ export interface _Pane extends _Widget {
export interface _PaneStatic {
EVENT_LOADED: string;
}
export declare class Pane extends Widget {
static EVENT_LOADED: string;
_assertTip(..._args: any[]): void;
loading(): void;
loaded(): void;
check(): void;
setTipVisible(b: boolean): void;
populate(items?: any[]): void;
}

16
typescript/base/single/text.ts

@ -1,4 +1,4 @@
import { _Single } from "./single";
import { _Single, Single } from "./single";
export interface _Text extends _Single {
doRedMark(keyword: string): void;
@ -13,3 +13,17 @@ export interface _Text extends _Single {
setText(v: string): void;
}
export declare class Text extends Single {
static xtype: string;
doRedMark(keyword: string): void;
unRedMark(): void;
doHighLight(): void;
unHighLight(): void;
setStyle(css: any): void;
}

12
typescript/case/colorchooser/colorchooser.simple.ts

@ -0,0 +1,12 @@
import { Widget } from '../../core/widget';
export declare class SimpleColorChooser extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
isViewVisible(): boolean;
hideView(): void;
showView(): void;
}

53
typescript/case/editor/editor.sign.ts

@ -1,4 +1,4 @@
import { _Widget } from "../../core/widget";
import { Widget, _Widget } from "../../core/widget";
export interface _SignEditor extends _Widget {
setTitle(v: string | Function): void;
@ -53,3 +53,54 @@ export interface _SignEditorStatic {
EVENT_SPACE: string;
EVENT_EMPTY: string;
}
export declare class SignEditor extends Widget {
static xtype: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CHANGE: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_CLICK_LABEL: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_SPACE: string;
static EVENT_EMPTY: string;
setTitle(v: string | Function): void;
setWarningTitle(v: string | Function): void;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
setErrorText(v: string): void;
getErrorText(): string;
isEditing(): boolean;
getLastChangedValue(): string;
getState(): any;
setState(...args: any[]): void;
}

2
typescript/core/wrapper/layout/adapt/inline.vertical.ts

@ -2,4 +2,4 @@ import { Layout } from "../../layout";
export declare class InlineVerticalAdaptLayout extends Layout {
static xtype: string;
}
}

30
typescript/index.ts

@ -1,7 +1,7 @@
import { _Combo, _ComboStatic } from "./base/combination/combo";
import { _ButtonGroup, _ButtonGroupChooseType, _ButtonGroupStatic, ButtonGroup } from "./base/combination/group.button";
import { _Tab, _TabStatic, Tab } from "./base/combination/tab";
import { _Pane, _PaneStatic } from "./base/pane";
import { _Pane, _PaneStatic, Pane } from "./base/pane";
import { _BasicButton, _BasicButtonStatic, BasicButton } from "./base/single/button/button.basic";
import { _NodeButton, NodeButton } from "./base/single/button/button.node";
import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/button";
@ -14,14 +14,14 @@ import { _Input, _InputStatic } from "./base/single/input/input";
import { _AbstractLabel, AbstractLabel } from "./base/single/label/abstract.label";
import { _Label, Label } from "./base/single/label/label";
import { _Single, Single } from "./base/single/single";
import { _Text } from "./base/single/text";
import { _Text, Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { IconChangeButton, _IconChangeButton, _IconChangeButtonStatic } from "./case/button/icon/icon.change";
import { _MultiSelectItem, _MultiSelectItemStatic, MultiSelectItem } from "./case/button/item.multiselect";
import { _BubbleCombo, _BubbleComboStatic } from "./case/combo/bubblecombo/combo.bubble";
import { _TextValueCombo, _TextValueComboStatic, TextValueCombo } from "./case/combo/combo.textvalue";
import { _SearchTextValueCombo, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
import { _SignEditor, _SignEditorStatic } from "./case/editor/editor.sign";
import { _SignEditor, _SignEditorStatic, SignEditor } 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";
@ -64,11 +64,18 @@ import { IconArrowNode } from "./case/button/node/node.icon.arrow";
import { MidTreeLeafItem } from "./case/button/treeitem/item.mid.treeleaf";
import { FirstTreeLeafItem } from "./case/button/treeitem/item.first.treeleaf";
import { LastTreeLeafItem } from "./case/button/treeitem/item.last.treeleaf";
import { SmallTextEditor } from "./widget/editor/editor.text.small";
import { MultifileEditor } from "./widget/editor/editor.multifile";
import { AbsoluteCenterLayout } from "./core/wrapper/layout/adapt/absolute.center";
import { HorizontalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.horizontal";
import { FloatLeftLayout } from "./core/wrapper/layout/layout.flow";
import { CenterAdaptLayout } from "./core/wrapper/layout/adapt/adapt.center";
import { VerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.vertical";
import { MultiSelectInsertCombo } from "./widget/multiselect/multiselect.insert.combo";
import { MultiSelectCombo } from "./widget/multiselect/multiselect.combo";
import { SearchEditor } from "./widget/editor/editor.search";
import { MultiLayerSingleLevelTree } from "./widget/multilayersingletree/multilayersingletree.leveltree";
import { SimpleColorChooser } from "./case/colorchooser/colorchooser.simple";
type ClassConstructor<T extends {}> = T & {
@ -151,6 +158,13 @@ export interface BI extends _func, _i18n, _base, _inject {
MidTreeLeafItem: typeof MidTreeLeafItem;
FirstTreeLeafItem: typeof FirstTreeLeafItem;
LastTreeLeafItem: typeof LastTreeLeafItem;
SmallTextEditor: typeof SmallTextEditor;
MultifileEditor: typeof MultifileEditor;
MultiSelectInsertCombo: typeof MultiSelectInsertCombo;
MultiSelectCombo: typeof MultiSelectCombo;
SearchEditor: typeof SearchEditor;
MultiLayerSingleLevelTree: typeof MultiLayerSingleLevelTree;
SimpleColorChooser: typeof SimpleColorChooser;
}
export default {
@ -203,4 +217,14 @@ export {
MidTreeLeafItem,
FirstTreeLeafItem,
LastTreeLeafItem,
SmallTextEditor,
MultifileEditor,
SignEditor,
MultiSelectInsertCombo,
MultiSelectCombo,
SearchEditor,
Text,
Pane,
MultiLayerSingleLevelTree,
SimpleColorChooser,
};

24
typescript/widget/editor/editor.multifile.ts

@ -0,0 +1,24 @@
import { Widget } from "../../core/widget";
export declare class MultifileEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_UPLOADSTART: string;
static EVENT_ERROR: string;
static EVENT_PROGRESS: string;
static EVENT_UPLOADED: string;
_reset(): void;
select(): void;
getValue(): {
attach_id: string;
attach_type: string;
filename: string;
}[];
upload(): void;
reset(): void;
}

41
typescript/widget/editor/editor.search.ts

@ -0,0 +1,41 @@
import { Widget } from '../../core/widget';
export declare class SearchEditor extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_CLICK: string;
static EVENT_KEY_DOWN: string;
static EVENT_SPACE: string;
static EVENT_BACKSPACE: string;
static EVENT_CLEAR: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
static EVENT_REMOVE: string;
static EVENT_EMPTY: string;
setWaterMark(v: string): void;
focus(): void;
blur(): void;
getKeywords(): string[];
getLastValidValue(): string;
getLastChangedValue(): string;
isEditing(): boolean;
isValid(): boolean;
}

5
typescript/widget/editor/editor.text.small.ts

@ -0,0 +1,5 @@
import { TextEditor } from "./editor.text";
export declare class SmallTextEditor extends TextEditor {
static xtype: string;
}

2
typescript/widget/editor/editor.text.ts

@ -32,5 +32,5 @@ export declare class TextEditor extends Widget {
getErrorText(): string;
isValid(): boolean
isValid(): boolean;
}

16
typescript/widget/multilayersingletree/multilayersingletree.leveltree.ts

@ -0,0 +1,16 @@
import { Pane } from '../../base/pane'
export declare class MultiLayerSingleLevelTree extends Pane {
static xtype: string;
static EVENT_CHANGE: string;
initTree(nodes: any, ...args: any[]): void;
populate(nodes: any, ...args: any[]): void;
getAllLeaves<T>(): T[];
getNodeById(id: any): any;
getNodeByValue(value: any): any;
}

57
typescript/widget/multiselect/multiselect.combo.ts

@ -0,0 +1,57 @@
import { Single } from "../../base/single/single";
export declare class MultiSelectCombo extends Single {
static xtype: string;
static EVENT_BLUR: string;
static EVENT_FOCUS: string;
static EVENT_STOP: string;
static EVENT_SEARCHING: string;
static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
_itemsCreator4Trigger(op: any, callback: Function): void;
_stopEditing(): void;
_defaultState(): void;
_assertValue(): void;
_makeMap(): Obj;
_joinKeywords(keywords: string[], callback: Function): void;
_joinAll(res: {
type: string;
value: string[];
assist: string[];
}, callback: Function): void;
_adjust(callback: Function): void;
_join(): void;
_setStartValue(value: string): void;
_populate(...args: any[]): void;
showView(): void;
hideView(): void;
setValue(value: {
type: string;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
value: string[];
assist: string[];
};
populate(...args: any[]): void;
}

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

@ -0,0 +1,60 @@
import { Single } from "../../base/single/single";
export declare class MultiSelectInsertCombo extends Single {
static xtype: string;
static EVENT_FOCUS: string;
static EVENT_BLUR: string;
static EVENT_STOP: string;
static EVENT_SEARCHING: string;
static EVENT_CLICK_ITEM: string;
static EVENT_CONFIRM: string;
static EVENT_ADD_ITEM: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
_itemsCreator4Trigger(op: any, callback: Function): void;
_addItem(assertShowValue: () => void, matched: boolean): void;
_stopEditing(): void;
_defaultState(): void;
_assertValue(): void;
_makeMap(): Obj;
_joinKeywords(keywords: string[], callback: Function): void;
_joinAll(res: {
type: string;
value: string[];
assist: string[];
}, callback: Function): void;
_adjust(callback: Function): void;
_join(): void;
_setStartValue(value: string): void;
_populate(...args: any[]): void;
showView(): void;
hideView(): void;
setValue(value: {
type: string;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
value: string[];
assist: string[];
};
populate(...args: any[]): void;
}
Loading…
Cancel
Save