Browse Source

KERNEL-6431 补充类型

es6
alan 4 years ago
parent
commit
6d3c55a155
  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. 3266
      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. 3218
      dist/core.js
  13. 2
      dist/core.js.map
  14. 2
      dist/demo.css
  15. 3602
      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. 3284
      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. 1584
      dist/fineui_without_jquery_polyfill.js
  26. 2
      dist/fineui_without_jquery_polyfill.js.map
  27. 2
      dist/font.css
  28. 7
      dist/lib/base/tree/ztree/asynctree.d.ts
  29. 4
      dist/lib/base/tree/ztree/list/listasynctree.d.ts
  30. 4
      dist/lib/base/tree/ztree/list/listtreeview.d.ts
  31. 54
      dist/lib/base/tree/ztree/treeview.d.ts
  32. 7
      dist/lib/case/button/item.singleselect.radio.d.ts
  33. 22
      dist/lib/index.d.ts
  34. 8
      dist/lib/widget/multilayerselecttree/multilayerselecttree.popup.d.ts
  35. 8
      dist/lib/widget/multilayersingletree/multilayersingletree.popup.d.ts
  36. 11
      dist/lib/widget/multitree/multi.tree.popup.d.ts
  37. 10
      dist/lib/widget/singleselect/singleselect.combo.d.ts
  38. 10
      dist/lib/widget/singleselect/singleselect.insert.combo.d.ts
  39. 2
      dist/resource.css
  40. 188
      dist/utils.js
  41. 2
      dist/utils.js.map
  42. 4
      dist/utils.min.js
  43. 2
      dist/utils.min.js.map
  44. 2
      package.json
  45. 11
      typescript/base/tree/ztree/asynctree.ts
  46. 5
      typescript/base/tree/ztree/list/listasynctree.ts
  47. 5
      typescript/base/tree/ztree/list/listtreeview.ts
  48. 70
      typescript/base/tree/ztree/treeview.ts
  49. 18
      typescript/index.ts
  50. 13
      typescript/widget/multilayerselecttree/multilayerselecttree.popup.ts
  51. 13
      typescript/widget/multilayersingletree/multilayersingletree.popup.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

3266
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

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

3218
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

2
dist/demo.css vendored

File diff suppressed because one or more lines are too long

3602
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

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

3284
dist/fineui.js vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.js.map vendored

File diff suppressed because one or more lines are too long

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

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

1584
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

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

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

4
dist/lib/base/tree/ztree/list/listasynctree.d.ts vendored

@ -0,0 +1,4 @@
import { ListTreeView } from "./listtreeview";
export declare class ListAsyncTree extends ListTreeView {
static xtype: string;
}

4
dist/lib/base/tree/ztree/list/listtreeview.d.ts vendored

@ -0,0 +1,4 @@
import { TreeView } from "../treeview";
export declare class ListTreeView extends TreeView {
static xtype: string;
}

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

@ -0,0 +1,54 @@
import { Pane } from "../../pane";
export declare class TreeView extends Pane {
static xtype: string;
static REQ_TYPE_INIT_DATA: 1;
static REQ_TYPE_ADJUST_DATA: 2;
static REQ_TYPE_SELECT_DATA: 3;
static REQ_TYPE_GET_SELECTED_DATA: 4;
static EVENT_CHANGE: string;
static EVENT_INIT: string;
static EVENT_AFTERINIT: string;
_createTree(): void;
_selectTreeNode<T>(treeId: string, treeNode: T): void;
_configSetting(): {
[key: string]: any;
};
_getParentValues<T, U>(treeNode: T): U;
_getNodeValue<T, U>(treeNode: T): U;
_getHalfSelectedValues<T>(map: TreeValue, node: T): void;
_getTree<T>(map: TreeValue, values: string[]): TreeValue;
_addTreeNode(map: TreeValue, values: string[], key: string, value: string): void;
_buildTree(map: TreeValue, values: string[]): void;
_getSelectedValues(): TreeValue;
_dealWidthNodes<T>(nodes: T[]): T[];
_loadMore(): void;
_initTree(setting: {
[key: string]: any;
}): void;
initTree<T>(node: T, setting: {
[key: string]: any;
}): void;
start(): void;
stop(): void;
stroke(config: {
[key: string]: any;
}): void;
hasChecked(): boolean;
checkAll<T>(checked: T[]): void;
expandAll(flag: boolean): void;
setValue(value: TreeValue, param: {
[key: string]: any;
}): void;
setSelectedValue(value: TreeValue): void;
updateValue(value: TreeValue, param: {
[key: string]: any;
}): void;
refresh(): void;
getValue(): TreeValue;
populate(config: {
[key: string]: any;
}): void;
}
export interface TreeValue {
[key: string]: TreeValue;
}

7
dist/lib/case/button/item.singleselect.radio.d.ts vendored

@ -0,0 +1,7 @@
import { BasicButton } from "../../base/single/button/button.basic";
export declare class SingleSelectRadioItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
}

22
dist/lib/index.d.ts vendored

@ -98,6 +98,16 @@ import { ListTreeValueChooserInsertCombo } from "./component/treevaluechooser/co
import { TreeValueChooserCombo } from "./component/treevaluechooser/combo.treevaluechooser";
import { TreeValueChooserInsertCombo } from "./component/treevaluechooser/combo.treevaluechooser.insert";
import { Radio } from "./base/single/input/radio/radio";
import { MultiLayerSelectTreePopup } from "./widget/multilayerselecttree/multilayerselecttree.popup";
import { MultiLayerSingleTreePopup } from "./widget/multilayersingletree/multilayersingletree.popup";
import { TreeView } from "./base/tree/ztree/treeview";
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 { ListTreeView } from "./base/tree/ztree/list/listtreeview";
import { ListAsyncTree } from "./base/tree/ztree/list/listasynctree";
import { AsyncTree } from "./base/tree/ztree/asynctree";
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
@ -146,6 +156,12 @@ export interface BI extends _func, _i18n, _base, _inject {
ListTreeValueChooserInsertCombo: typeof ListTreeValueChooserInsertCombo;
TreeValueChooserCombo: typeof TreeValueChooserCombo;
TreeValueChooserInsertCombo: typeof TreeValueChooserInsertCombo;
MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup;
MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup;
TreeView: typeof TreeView;
ListTreeView: typeof ListTreeView;
ListAsyncTree: typeof ListAsyncTree;
AsyncTree: typeof AsyncTree;
Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic;
Iframe: ClassConstructor<_Iframe>;
@ -206,9 +222,13 @@ export interface BI extends _func, _i18n, _base, _inject {
CenterLayout: typeof CenterLayout;
VirtualGroup: typeof VirtualGroup;
GridLayout: typeof GridLayout;
MultiTreePopup: typeof MultiTreePopup;
SingleSelectRadioItem: typeof SingleSelectRadioItem;
SingleSelectInsertCombo: typeof SingleSelectInsertCombo;
SingleSelectCombo: typeof SingleSelectCombo;
}
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, 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, };
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, };

8
dist/lib/widget/multilayerselecttree/multilayerselecttree.popup.d.ts vendored

@ -0,0 +1,8 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerSelectTreePopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getValue<T>(): T;
setValue(v: any): void;
populate<T>(items: T[]): void;
}

8
dist/lib/widget/multilayersingletree/multilayersingletree.popup.d.ts vendored

@ -0,0 +1,8 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerSingleTreePopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getValue<T>(): T;
setValue(v: any): void;
populate<T>(items: T[]): void;
}

11
dist/lib/widget/multitree/multi.tree.popup.d.ts vendored

@ -0,0 +1,11 @@
import { Pane } from "../../base/pane";
export declare class MultiTreePopup extends Pane {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_CLICK_CONFIRM: string;
static EVENT_CLICK_CLEAR: string;
static EVENT_AFTERINIT: string;
hasChecked(): boolean;
resetHeight(h: number): void;
resetWidth(w: number): void;
}

10
dist/lib/widget/singleselect/singleselect.combo.d.ts vendored

@ -0,0 +1,10 @@
import { Single } from "../../base/single/single";
export declare class SingleSelectCombo 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;
}

10
dist/lib/widget/singleselect/singleselect.insert.combo.d.ts vendored

@ -0,0 +1,10 @@
import { Single } from "../../base/single/single";
export declare class SingleSelectInsertCombo 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;
}

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

188
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
package.json

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

11
typescript/base/tree/ztree/asynctree.ts

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

5
typescript/base/tree/ztree/list/listasynctree.ts

@ -0,0 +1,5 @@
import { ListTreeView } from "./listtreeview";
export declare class ListAsyncTree extends ListTreeView {
static xtype: string;
}

5
typescript/base/tree/ztree/list/listtreeview.ts

@ -0,0 +1,5 @@
import { TreeView } from "../treeview";
export declare class ListTreeView extends TreeView {
static xtype: string;
}

70
typescript/base/tree/ztree/treeview.ts

@ -0,0 +1,70 @@
import { Pane } from "../../pane";
export declare class TreeView extends Pane {
static xtype: string;
static REQ_TYPE_INIT_DATA: 1;
static REQ_TYPE_ADJUST_DATA: 2;
static REQ_TYPE_SELECT_DATA: 3;
static REQ_TYPE_GET_SELECTED_DATA: 4;
static EVENT_CHANGE: string;
static EVENT_INIT: string;
static EVENT_AFTERINIT: string;
_createTree(): void;
_selectTreeNode<T>(treeId: string, treeNode: T): void;
_configSetting(): {[key: string]: any};
_getParentValues<T, U>(treeNode: T): U;
_getNodeValue<T, U>(treeNode: T): U;
_getHalfSelectedValues<T>(map: TreeValue, node: T): void;
_getTree<T>(map: TreeValue, values: string[]): TreeValue;
_addTreeNode(map: TreeValue, values: string[], key: string, value: string): void;
_buildTree(map: TreeValue, values: string[]): void;
_getSelectedValues(): TreeValue;
_dealWidthNodes<T>(nodes: T[]): T[];
_loadMore(): void;
_initTree(setting: {[key: string]: any}): void;
initTree<T>(node: T, setting: {[key: string]: any}): void;
start(): void;
stop(): void;
stroke(config: {[key: string]: any}): void;
hasChecked(): boolean;
checkAll<T>(checked: T[]): void;
expandAll(flag: boolean): void;
setValue(value: TreeValue, param: {[key: string]: any}): void;
setSelectedValue(value: TreeValue): void;
updateValue(value: TreeValue, param: {[key: string]: any}): void;
refresh(): void;
getValue(): TreeValue;
// @ts-ignore
populate(config: {[key: string]: any}): void;
}
export interface TreeValue {
[key: string]: TreeValue;
}

18
typescript/index.ts

@ -98,6 +98,9 @@ import { ListTreeValueChooserInsertCombo } from "./component/treevaluechooser/co
import { TreeValueChooserCombo } from "./component/treevaluechooser/combo.treevaluechooser";
import { TreeValueChooserInsertCombo } from "./component/treevaluechooser/combo.treevaluechooser.insert";
import { Radio } from "./base/single/input/radio/radio";
import { MultiLayerSelectTreePopup } from "./widget/multilayerselecttree/multilayerselecttree.popup";
import { MultiLayerSingleTreePopup } from "./widget/multilayersingletree/multilayersingletree.popup";
import { TreeView } from "./base/tree/ztree/treeview";
import { MultiTreePopup } from "./widget/multitree/multi.tree.popup";
import { SingleSelectRadioItem } from "./case/button/item.singleselect.radio";
import { SingleSelectInsertCombo } from "./widget/singleselect/singleselect.insert.combo";
@ -105,6 +108,9 @@ 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";
type ClassConstructor<T extends {}> = T & {
@ -156,6 +162,12 @@ export interface BI extends _func, _i18n, _base, _inject {
ListTreeValueChooserInsertCombo: typeof ListTreeValueChooserInsertCombo;
TreeValueChooserCombo: typeof TreeValueChooserCombo;
TreeValueChooserInsertCombo: typeof TreeValueChooserInsertCombo;
MultiLayerSelectTreePopup: typeof MultiLayerSelectTreePopup;
MultiLayerSingleTreePopup: typeof MultiLayerSingleTreePopup;
TreeView: typeof TreeView;
ListTreeView: typeof ListTreeView;
ListAsyncTree: typeof ListAsyncTree;
AsyncTree: typeof AsyncTree;
Decorators: typeof decorator;
DownListCombo: ClassConstructor<_DownListCombo> & _DownListComboStatic;
Iframe: ClassConstructor<_Iframe>;
@ -279,6 +291,12 @@ export {
ListTreeValueChooserInsertCombo,
TreeValueChooserCombo,
TreeValueChooserInsertCombo,
MultiLayerSelectTreePopup,
MultiLayerSingleTreePopup,
TreeView,
ListTreeView,
ListAsyncTree,
AsyncTree,
Combo,
IconCombo,
DynamicDateCombo,

13
typescript/widget/multilayerselecttree/multilayerselecttree.popup.ts

@ -0,0 +1,13 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerSelectTreePopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getValue<T>(): T;
setValue(v: any): void;
populate<T>(items: T[]): void;
}

13
typescript/widget/multilayersingletree/multilayersingletree.popup.ts

@ -0,0 +1,13 @@
import { Widget } from "../../core/widget";
export declare class MultiLayerSingleTreePopup extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getValue<T>(): T;
setValue(v: any): void;
populate<T>(items: T[]): void;
}
Loading…
Cancel
Save