Browse Source

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

es6
iapyang 4 years ago
parent
commit
02a9b6b5d5
  1. 1
      changelog.md
  2. 2
      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. 4564
      dist/2.0/fineui.js
  6. 2
      dist/2.0/fineui.js.map
  7. 2
      dist/2.0/fineui.min.css
  8. 4
      dist/2.0/fineui.min.js
  9. 2
      dist/2.0/fineui.min.js.map
  10. 2
      dist/2.0/fineui_without_normalize.css
  11. 2
      dist/2.0/fineui_without_normalize.min.css
  12. 2
      dist/core.css
  13. 4406
      dist/core.js
  14. 2
      dist/core.js.map
  15. 2
      dist/demo.css
  16. 4838
      dist/demo.js
  17. 2
      dist/demo.js.map
  18. 2
      dist/fineui.css
  19. 4
      dist/fineui.ie.min.js
  20. 2
      dist/fineui.ie.min.js.map
  21. 4608
      dist/fineui.js
  22. 2
      dist/fineui.js.map
  23. 2
      dist/fineui.min.css
  24. 4
      dist/fineui.min.js
  25. 2
      dist/fineui.min.js.map
  26. 2524
      dist/fineui_without_jquery_polyfill.js
  27. 2
      dist/fineui_without_jquery_polyfill.js.map
  28. 2
      dist/font.css
  29. 9
      dist/lib/base/layer/layer.popup.d.ts
  30. 6
      dist/lib/base/list/listview.d.ts
  31. 10
      dist/lib/base/single/button/listitem/icontextitem.d.ts
  32. 6
      dist/lib/base/single/img/img.d.ts
  33. 7
      dist/lib/base/single/input/checkbox.d.ts
  34. 34
      dist/lib/base/single/input/input.d.ts
  35. 6
      dist/lib/base/single/trigger/trigger.d.ts
  36. 5
      dist/lib/case/button/switch.d.ts
  37. 4
      dist/lib/case/checkbox/check.arrownode.d.ts
  38. 15
      dist/lib/case/combo/bubblecombo/popup.bubble.d.ts
  39. 9
      dist/lib/case/combo/editoriconcheckcombo/combo.editiconcheck.d.ts
  40. 6
      dist/lib/case/combo/icontextvaluecombo/combo.icontextvalue.d.ts
  41. 10
      dist/lib/case/combo/searchtextvaluecombo/combo.searchtextvalue.d.ts
  42. 10
      dist/lib/case/combo/textvaluecheckcombo/combo.textvaluecheck.d.ts
  43. 38
      dist/lib/case/editor/editor.shelter.d.ts
  44. 5
      dist/lib/case/linersegment/linear.segment.d.ts
  45. 5
      dist/lib/case/loading/loading_pane.d.ts
  46. 14
      dist/lib/case/pager/pager.all.count.d.ts
  47. 4
      dist/lib/case/trigger/trigger.text.select.d.ts
  48. 8
      dist/lib/component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo.d.ts
  49. 9
      dist/lib/core/action/action.d.ts
  50. 4
      dist/lib/core/action/action.show.d.ts
  51. 13
      dist/lib/core/base.d.ts
  52. 8
      dist/lib/core/behavior/behavior.d.ts
  53. 4
      dist/lib/core/behavior/behavior.highlight.d.ts
  54. 4
      dist/lib/core/behavior/behavior.redmark.d.ts
  55. 12
      dist/lib/core/func/array.d.ts
  56. 135
      dist/lib/core/func/date.d.ts
  57. 65
      dist/lib/core/func/function.d.ts
  58. 12
      dist/lib/core/func/index.d.ts
  59. 63
      dist/lib/core/func/number.d.ts
  60. 114
      dist/lib/core/func/string.d.ts
  61. 132
      dist/lib/core/var.d.ts
  62. 7
      dist/lib/core/wrapper/layout/adapt/adapt.leftvertical.d.ts
  63. 3
      dist/lib/core/wrapper/layout/layout.flow.d.ts
  64. 4
      dist/lib/core/wrapper/layout/layout.horizontal.d.ts
  65. 4
      dist/lib/core/wrapper/layout/middle/middle.float.center.d.ts
  66. 88
      dist/lib/index.d.ts
  67. 7
      dist/lib/widget/datepane/datepane.d.ts
  68. 9
      dist/lib/widget/dynamicdate/dynamicdate.combo.d.ts
  69. 16
      dist/lib/widget/intervalslider/intervalslider.d.ts
  70. 4
      dist/lib/widget/multiselect/multiselect.insert.combo.d.ts
  71. 9
      dist/lib/widget/multiselectlist/multiselectlist.insert.d.ts
  72. 14
      dist/lib/widget/numbereditor/numbereditor.d.ts
  73. 17
      dist/lib/widget/numberinterval/numberinterval.d.ts
  74. 6
      dist/lib/widget/textvaluedownlistcombo/combo.textvaluedownlist.d.ts
  75. 12
      dist/lib/widget/timeinterval/dateinterval.d.ts
  76. 6
      dist/lib/widget/year/combo.year.d.ts
  77. 12
      dist/lib/widget/yearmonthinterval/yearmonthinterval.d.ts
  78. 6
      dist/lib/widget/yearquarter/combo.yearquarter.d.ts
  79. 2
      dist/resource.css
  80. 138
      dist/utils.js
  81. 2
      dist/utils.js.map
  82. 4
      dist/utils.min.js
  83. 2
      dist/utils.min.js.map
  84. 2
      package.json
  85. 16
      src/core/platform/web/jquery/_jquery.js
  86. 22
      src/router/router.js
  87. 2
      src/widget/date/calendar/combo.year.date.js
  88. 7
      src/widget/date/calendar/picker.date.js
  89. 4
      src/widget/date/calendar/picker.year.js
  90. 5
      src/widget/date/calendar/popup.calendar.date.js
  91. 4
      src/widget/datepane/card.static.datepane.js
  92. 6
      src/widget/datepane/datepane.js
  93. 5
      src/widget/datetimepane/card.static.datetimepane.js
  94. 5
      src/widget/datetimepane/datetimepane.js
  95. 6
      src/widget/dynamicdate/dynamicdate.combo.js
  96. 6
      src/widget/dynamicdate/dynamicdate.popup.js
  97. 6
      src/widget/dynamicdatetime/dynamicdatetime.combo.js
  98. 9
      src/widget/dynamicdatetime/dynamicdatetime.popup.js
  99. 10
      src/widget/multiselect/trigger/button.checkselected.js
  100. 9
      src/widget/timeinterval/dateinterval.js
  101. Some files were not shown because too many files have changed in this diff Show More

1
changelog.md

@ -1,5 +1,6 @@
# 更新日志
2.0(2020-12)
- 日期选择控件为年月选择器子组件新增POPUP弹出前事件
- 文件上传控件新增API(setMaxFileLength)以动态设置最大上传文件数量
- 复选下拉树显示查看已选效果改成和复选下拉列表一致
- Pane系列提供small和big两种大小的加载动画

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

4564
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

4406
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

4838
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

4608
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

2524
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

9
dist/lib/base/layer/layer.popup.d.ts vendored

@ -0,0 +1,9 @@
import { Widget } from '../../core/widget';
export declare class PopupView extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getView(): Widget;
populate(...args: any[]): void;
resetWidth(v: number): void;
resetHeight(v: number): void;
}

6
dist/lib/base/list/listview.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from '../../core/widget';
export declare class ListView extends Widget {
static xtype: string;
restore(): void;
populate<T>(items: T[]): void;
}

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

@ -1,4 +1,4 @@
import { _BasicButton } from "../button.basic";
import { BasicButton, _BasicButton } from "../button.basic";
export interface _IconTextItem extends _BasicButton {
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
@ -8,3 +8,11 @@ export interface _IconTextItem extends _BasicButton {
export interface _IconTextItemStatic {
EVENT_CHANGE: string;
}
export declare class IconTextItem extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
doRedMark(...args: any[]): void;
unRedMark(...args: any[]): void;
doHighLight(...args: any[]): void;
unHighLight(...args: any[]): void;
}

6
dist/lib/base/single/img/img.d.ts vendored

@ -0,0 +1,6 @@
import { Single } from "../single";
export declare class Img extends Single {
static xtype: string;
setSrc(src: string): void;
getSrc(): string;
}

7
dist/lib/base/single/input/checkbox.d.ts vendored

@ -1,7 +1,12 @@
import { _BasicButton } from "../button/button.basic";
import { BasicButton, _BasicButton } from "../button/button.basic";
export interface _Checkbox extends _BasicButton {
_setEnable(enable: boolean): void;
}
export interface _CheckboxStatic {
EVENT_CHANGE: string;
}
export declare class Checkbox extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
_setEnable(enable: boolean): void;
}

34
dist/lib/base/single/input/input.d.ts vendored

@ -1,4 +1,4 @@
import { _Single } from "../single";
import { _Single, Single } from "../single";
export interface _Input extends _Single {
onClick(): void;
onKeyDown(keyCode: number): void;
@ -32,3 +32,35 @@ export interface _InputStatic {
EVENT_ENTER: string;
EVENT_RESTRICT: string;
}
export declare class Input extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_CLICK: string;
static EVENT_BLUR: string;
static EVENT_KEY_DOWN: string;
static EVENT_QUICK_DOWN: string;
static EVENT_SPACE: string;
static EVENT_BACKSPACE: string;
static EVENT_START: string;
static EVENT_PAUSE: string;
static EVENT_STOP: string;
static EVENT_CHANGE_CONFIRM: string;
static EVENT_CONFIRM: string;
static EVENT_REMOVE: string;
static EVENT_EMPTY: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_ENTER: string;
static EVENT_RESTRICT: string;
onClick(): void;
onKeyDown(keyCode: number): void;
focus(): void;
blur(): void;
selectAll(): void;
setValue(v: string): void;
getValue(): string;
isEditing(): boolean;
getLastValidValue(): string;
getLastChangedValue(): string;
}

6
dist/lib/base/single/trigger/trigger.d.ts vendored

@ -1,5 +1,9 @@
import { _Single } from "../single";
import { Single, _Single } from "../single";
export interface _Trigger extends _Single {
setKey(..._args: any[]): void;
getKey(): string;
}
export declare class Trigger extends Single {
setKey(..._args: any[]): void;
getKey(): string;
}

5
dist/lib/case/button/switch.d.ts vendored

@ -0,0 +1,5 @@
import { BasicButton } from "../../base/single/button/button.basic";
export declare class Switch extends BasicButton {
static xtype: string;
static EVENT_CHANGE: string;
}

4
dist/lib/case/checkbox/check.arrownode.d.ts vendored

@ -0,0 +1,4 @@
import { IconButton } from "../../base/single/button/buttons/button.icon";
export declare class ArrowTreeGroupNodeCheckbox extends IconButton {
static xtype: string;
}

15
dist/lib/case/combo/bubblecombo/popup.bubble.d.ts vendored

@ -0,0 +1,15 @@
import { PopupView } from "../../../base/layer/layer.popup";
import { Widget } from "../../../core/widget";
export declare class BubblePopupView extends PopupView {
static xtype: string;
static EVENT_CLICK_TOOLBAR_BUTTON: string;
}
export declare class BubblePopupBarView extends BubblePopupView {
static xtype: string;
static EVENT_CLICK_TOOLBAR_BUTTON: string;
}
export declare class TextBubblePopupBarView extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
populate(v: string): void;
}

9
dist/lib/case/combo/editoriconcheckcombo/combo.editiconcheck.d.ts vendored

@ -0,0 +1,9 @@
import { Widget } from "../../../core/widget";
export declare class EditorIconCheckCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_FOCUS: string;
static EVENT_EMPTY: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
}

6
dist/lib/case/combo/icontextvaluecombo/combo.icontextvalue.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from '../../../core/widget';
export declare class IconTextValueCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
populate<T>(items: T[]): void;
}

10
dist/lib/case/combo/searchtextvaluecombo/combo.searchtextvalue.d.ts vendored

@ -1,4 +1,4 @@
import { _Widget } from "../../../core/widget";
import { Widget, _Widget } from "../../../core/widget";
export interface _SearchTextValueCombo extends _Widget {
populate(items: any[]): void;
setValue(v: any): void;
@ -8,3 +8,11 @@ export interface _SearchTextValueComboStatic {
EVENT_CHANGE: string;
EVENT_BEFORE_POPUPVIEW: string;
}
export declare class SearchTextValueCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
populate(items: any[]): void;
setValue(v: any): void;
getValue<T>(): T[];
}

10
dist/lib/case/combo/textvaluecheckcombo/combo.textvaluecheck.d.ts vendored

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

38
dist/lib/case/editor/editor.shelter.d.ts vendored

@ -0,0 +1,38 @@
import { Widget } from "../../core/widget";
export declare class ShelterEditor 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_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;
isValid(): boolean;
getLastValidValue(): string;
getLastChangedValue(): string;
getState(): any;
setState(...args: any[]): void;
}

5
dist/lib/case/linersegment/linear.segment.d.ts vendored

@ -0,0 +1,5 @@
import { Widget } from "../../core/widget";
export declare class LinearSegment extends Widget {
static xtype: string;
setEnabledValue(v: any): void;
}

5
dist/lib/case/loading/loading_pane.d.ts vendored

@ -1,4 +1,7 @@
import { _Pane } from "../../base/pane";
import { _Pane, Pane } from "../../base/pane";
export interface _LoadingPane extends _Pane {
__loaded: (...args: any[]) => void;
}
export declare class LoadingPane extends Pane {
__loaded: (...args: any[]) => void;
}

14
dist/lib/case/pager/pager.all.count.d.ts vendored

@ -0,0 +1,14 @@
import { Widget } from "../../core/widget";
export declare class AllCountPager extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
setAllPages(v: number): void;
setValue(v: number): void;
setVPage(v: number): void;
setCount(v: number | string): void;
getCurrentPage(): number;
hasPrev(): boolean;
hasNext(): boolean;
setPagerVisible(v: boolean): void;
populate(): void;
}

4
dist/lib/case/trigger/trigger.text.select.d.ts vendored

@ -0,0 +1,4 @@
import { Trigger } from "../../base/single/trigger/trigger";
export declare class SelectTextTrigger extends Trigger {
static xtype: string;
}

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

@ -1,4 +1,4 @@
import { _Widget } from "../../core/widget";
import { Widget, _Widget } from "../../core/widget";
export interface _AllValueMultiTextValueCombo extends _Widget {
getValue<T>(): T[];
populate(items: any): void;
@ -6,3 +6,9 @@ export interface _AllValueMultiTextValueCombo extends _Widget {
export interface _AllValueMultiTextValueComboStatic {
EVENT_CONFIRM: string;
}
export declare class AllValueMultiTextValueCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
getValue<T>(): T[];
populate(items: any): void;
}

9
dist/lib/core/action/action.d.ts vendored

@ -1,4 +1,4 @@
import { _OB } from "../ob";
import { _OB, OB } from "../ob";
export interface _Action extends _OB {
actionPerformed(src: any, tar: any, callback: Function): void;
actionBack(tar: any, src: any, callback: Function): void;
@ -6,3 +6,10 @@ export interface _Action extends _OB {
export interface _ActionFactory {
createAction(key: string, options: any): _Action;
}
export declare class Action extends OB {
actionPerformed(src: any, tar: any, callback: Function): void;
actionBack(tar: any, src: any, callback: Function): void;
}
export declare class ActionFactory {
createAction(key: string, options: any): Action;
}

4
dist/lib/core/action/action.show.d.ts vendored

@ -1,3 +1,5 @@
import { _Action } from "./action";
import { _Action, Action } from "./action";
export interface _ShowAction extends _Action {
}
export declare class ShowAction extends Action {
}

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

@ -113,7 +113,7 @@ export interface _base {
isNaN: (value: any) => value is number;
isUndefined: (value: any) => value is undefined;
zipObject: (props: any[], values?: any[]) => object;
cloneDeep: (value: any, customizer?: Function, thisArg?: any) => any;
cloneDeep: <T>(value: T) => T;
findKey: (object: object, predicate?: Function | object | string, thisArg?: any) => any;
pick: (object: object, predicate?: Function | string | string[], thisArg?: any) => object;
omit: (object: object, predicate?: Function | string | string[], thisArg?: any) => object;
@ -134,6 +134,8 @@ export interface _base {
isEmptyObject: (obj: any) => boolean;
isNotEmptyObject: (obj: any) => obj is object;
isWindow: (obj: any) => obj is Window;
deepClone: <T>(obj: T) => T;
deepExtend: merge['deepExtend'];
isDeepMatch: (object: any, attrs: any) => boolean;
contains: (obj: any[], target: any, fromIndex?: number) => boolean;
deepContains: (obj: any[], copy: any) => number;
@ -191,3 +193,12 @@ export interface _base {
getDate: (...args: (number | string)[]) => Date;
getTime: (...args: any[]) => number;
}
declare type merge = {
deepExtend<TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
deepExtend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
deepExtend<TObject, TSource1, TSource2>(object: TObject, source1: TSource1, source2: TSource2): TObject & TSource1 & TSource2;
deepExtend<TObject, TSource1, TSource2, TSource3>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3): TObject & TSource1 & TSource2 & TSource3;
deepExtend<TObject, TSource1, TSource2, TSource3, TSource4>(object: TObject, source1: TSource1, source2: TSource2, source3: TSource3, source4: TSource4): TObject & TSource1 & TSource2 & TSource3 & TSource4;
deepExtend(object: any, ...otherArgs: any[]): any;
};
export {};

8
dist/lib/core/behavior/behavior.d.ts vendored

@ -1,7 +1,13 @@
import { _OB } from "../ob";
import { _OB, OB } from "../ob";
export interface _Behavior extends _OB {
doBehavior(items: any[]): void;
}
export interface _BehaviorFactory {
createBehavior(key: string, options: any): _Behavior;
}
export declare class Behavior extends OB {
doBehavior(items: any[]): void;
}
export declare class BehaviorFactory {
createBehavior(key: string, options: any): Behavior;
}

4
dist/lib/core/behavior/behavior.highlight.d.ts vendored

@ -1,3 +1,5 @@
import { _Behavior } from "./behavior";
import { _Behavior, Behavior } from "./behavior";
export interface _HighlightBehavior extends _Behavior {
}
export declare class HighlightBehavior extends Behavior {
}

4
dist/lib/core/behavior/behavior.redmark.d.ts vendored

@ -1,3 +1,5 @@
import { _Behavior } from "./behavior";
import { _Behavior, Behavior } from "./behavior";
export interface _RedMarkBehavior extends _Behavior {
}
export declare class RedMarkBehavior extends Behavior {
}

12
dist/lib/core/func/array.d.ts vendored

@ -1,9 +1,5 @@
export declare type _pushArray = (sArray: any[], array: any[]) => void;
export declare type _pushDistinct = (sArray: any[], obj: any) => void;
export declare type _pushDistinctArray = (sArray: any[], array: any[]) => void;
declare type _array = {
pushArray: _pushArray;
pushDistinct: _pushDistinct;
pushDistinctArray: _pushDistinctArray;
export declare type _array = {
pushArray: (sArray: any[], array: any[]) => void;
pushDistinct: (sArray: any[], obj: any) => void;
pushDistinctArray: (sArray: any[], array: any[]) => void;
};
export default _array;

135
dist/lib/core/func/date.d.ts vendored

@ -13,80 +13,65 @@ export declare type _Date = {
_MD: number[];
_OFFSET: number[];
};
/**
*
*/
export declare type _getTimezone = (date: Date) => string;
/**
*
*/
export declare type _getMonthDays = (date: Date, month: number) => string;
/**
*
*/
export declare type _getLastDateOfMonth = (data: Date) => Date;
/**
*
*/
export declare type _getDayOfYear = (data: Date) => number;
/**
*
*/
export declare type _getWeekNumber = (data: Date) => number;
/**
*
*/
export declare type _getQuarter = (date: Date) => number;
/**
*
*/
export declare type _getOffsetDate = (date: Date, offset: number) => Date;
/**
*
*/
export declare type _getOffsetQuarter = (date: Date, n: number) => Date;
/**
*
*/
export declare type _getQuarterStartMonth = (date: Date) => number;
/**
*
*/
export declare type _getQuarterStartDate = (date: Date) => number;
/**
*
*/
export declare type _getQuarterEndDate = (date: Date) => number;
/**
* n个月之前或之后的日期
*/
export declare type _getOffsetMonth = (date: Date, n: number) => Date;
/**
*
*/
export declare type _getWeekStartDate = (date: Date) => Date;
/**
*
*/
export declare type _getWeekEndDate = (date: Date) => Date;
/**
*
*/
export declare type _print = (date: Date, str: string) => string;
export declare type _date = {
getTimezone: _getTimezone;
getMonthDays: _getMonthDays;
getLastDateOfMonth: _getLastDateOfMonth;
getDayOfYear: _getDayOfYear;
getWeekNumber: _getWeekNumber;
getQuarter: _getQuarter;
getOffsetDate: _getOffsetDate;
getOffsetQuarter: _getOffsetQuarter;
getQuarterStartMonth: _getQuarterStartMonth;
getQuarterStartDate: _getQuarterStartDate;
getQuarterEndDate: _getQuarterEndDate;
getOffsetMonth: _getOffsetMonth;
getWeekStartDate: _getWeekStartDate;
getWeekEndDate: _getWeekEndDate;
print: _print;
/**
*
*/
getTimezone: (date: Date) => string;
/**
*
*/
getMonthDays: (date: Date, month: number) => number;
/**
*
*/
getLastDateOfMonth: (data: Date) => Date;
/**
*
*/
getDayOfYear: (data: Date) => number;
/**
*
*/
getWeekNumber: (data: Date) => number;
/**
*
*/
getQuarter: (date: Date) => number;
/**
*
*/
getOffsetDate: (date: Date, offset: number) => Date;
/**
*
*/
getOffsetQuarter: (date: Date, n: number) => Date;
/**
*
*/
getQuarterStartMonth: (date: Date) => number;
/**
*
*/
getQuarterStartDate: (date: Date) => number;
/**
*
*/
getQuarterEndDate: (date: Date) => number;
/**
* n个月之前或之后的日期
*/
getOffsetMonth: (date: Date, n: number) => Date;
/**
*
*/
getWeekStartDate: (date: Date) => Date;
/**
*
*/
getWeekEndDate: (date: Date) => Date;
/**
*
*/
print: (date: Date, str: string) => string;
};

65
dist/lib/core/func/function.d.ts vendored

@ -1,36 +1,31 @@
/**
*
* @param array
* @param name
* @return
*/
export declare type _createDistinctName = (array: any[], name: string) => string;
/**
*
* @param items
* @param keyword
* @param param
*/
export declare type _getSearchResult = (items: any, keyword: any, param?: string) => {
find: any[];
match: any[];
export declare type _function = {
/**
*
* @param array
* @param name
* @return
*/
createDistinctName: (array: any[], name: string) => string;
/**
*
* @param items
* @param keyword
* @param param
*/
getSearchResult: (items: any, keyword: any, param?: string) => {
find: any[];
match: any[];
};
/**
* A执行之前执行方法B
* @param sFunc A
* @param func B
*/
beforeFunc: (sFunc: Function, func: Function) => Function;
/**
* A执行之后执行方法B
* @param sFunc A
* @param func B
*/
afterFunc: (sFunc: Function, func: Function) => Function;
};
/**
* A执行之前执行方法B
* @param sFunc A
* @param func B
*/
export declare type _beforeFunc = (sFunc: Function, func: Function) => Function;
/**
* A执行之后执行方法B
* @param sFunc A
* @param func B
*/
export declare type _afterFunc = (sFunc: Function, func: Function) => Function;
declare type _function = {
createDistinctName: _createDistinctName;
getSearchResult: _getSearchResult;
beforeFunc: _beforeFunc;
afterFunc: _afterFunc;
};
export default _function;

12
dist/lib/core/func/index.d.ts vendored

@ -1,8 +1,8 @@
import _array from "./array";
import _string from "./string";
import _number from "./number";
import _function from "./function";
import { _Date } from "./date";
export interface _func extends _array, _string, _number, _function {
import { _array } from "./array";
import { _string } from "./string";
import { _number } from "./number";
import { _function } from "./function";
import { _Date, _date } from "./date";
export interface _func extends _array, _string, _number, _function, _date {
Date: _Date;
}

63
dist/lib/core/func/number.d.ts vendored

@ -1,35 +1,30 @@
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _add = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _sub = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _mul = (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
export declare type _div = (num: number, arg: number) => number;
declare type _number = {
add: _add;
sub: _sub;
mul: _mul;
div: _div;
export declare type _number = {
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
add: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
sub: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
mul: (num: number, arg: number) => number;
/**
*
* @param {Number} num
* @param {Number} arg
* @return {Number}
*/
div: (num: number, arg: number) => number;
};
export default _number;

114
dist/lib/core/func/string.d.ts vendored

@ -1,62 +1,54 @@
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
export declare type _startWith = (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
export declare type _endWith = (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
export declare type _getQuery = (str: string, name: string) => string | null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
export declare type _appendQuery = (str: string, paras: {
[key: string]: string | number;
}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
export declare type _replaceAll = (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
export declare type _perfectStart = (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
export declare type _allIndexOf = (str: string, sub: string) => number[];
declare type _string = {
startWith: _startWith;
endWith: _endWith;
getQuery: _getQuery;
appendQuery: _appendQuery;
replaceAll: _replaceAll;
perfectStart: _perfectStart;
allIndexOf: _allIndexOf;
export declare type _string = {
/**
*
* @param str source字符串
* @param {String} startTag
* @return {Boolean} truefalse
*/
startWith: (str: string, startTag: string) => boolean;
/**
*
* @param str source字符串
* @param {String} endTag
* @return {Boolean} truefalse
*/
endWith: (str: string, endTag: string) => boolean;
/**
* url中指定名字的参数
* @param str source字符串
* @param {String} name
* @return {String}
*/
getQuery: (str: string, name: string) => string | null;
/**
* url加上给定的参数
* @param str source字符串
* @param {Object} paras
* @return {String} url
*/
appendQuery: (str: string, paras: {
[key: string]: string | number;
}) => string;
/**
*
* @param str source字符串
* @param {String} s1
* @param {String} s2
* @returns {String}
*/
replaceAll: (str: string, s1: string, s2: string) => string;
/**
*
* @param str source字符串
* @param {String} start
* @returns {String}
*/
perfectStart: (str: string, start: string) => string;
/**
*
* @param str source字符串
* @param {String} sub
* @return {Number[]}
*/
allIndexOf: (str: string, sub: string) => number[];
};
export default _string;

132
dist/lib/core/var.d.ts vendored

@ -0,0 +1,132 @@
export interface _var {
MAX: number;
MIN: number;
EVENT_RESPONSE_TIME: number;
zIndex_layer: number;
zIndex_popover: number;
zIndex_popup: number;
zIndex_masker: number;
zIndex_tip: number;
emptyStr: string;
emptyFn: Function;
empty: null;
Key: {
48: string;
49: string;
50: string;
51: string;
52: string;
53: string;
54: string;
55: string;
56: string;
57: string;
65: string;
66: string;
67: string;
68: string;
69: string;
70: string;
71: string;
72: string;
73: string;
74: string;
75: string;
76: string;
77: string;
78: string;
79: string;
80: string;
81: string;
82: string;
83: string;
84: string;
85: string;
86: string;
87: string;
88: string;
89: string;
90: string;
96: string;
97: string;
98: string;
99: string;
100: string;
101: string;
102: string;
103: string;
104: string;
105: string;
106: string;
107: string;
109: string;
110: string;
111: string;
};
KeyCode: {
BACKSPACE: number;
COMMA: number;
DELETE: number;
DOWN: number;
END: number;
ENTER: number;
ESCAPE: number;
HOME: number;
LEFT: number;
NUMPAD_ADD: number;
NUMPAD_DECIMAL: number;
NUMPAD_DIVIDE: number;
NUMPAD_ENTER: number;
NUMPAD_MULTIPLY: number;
NUMPAD_SUBTRACT: number;
PAGE_DOWN: number;
PAGE_UP: number;
PERIOD: number;
RIGHT: number;
SPACE: number;
TAB: number;
UP: number;
};
Status: {
SUCCESS: number;
WRONG: number;
START: number;
END: number;
WAITING: number;
READY: number;
RUNNING: number;
OUTOFBOUNDS: number;
NULL: number;
};
Direction: {
Top: string;
Bottom: string;
Left: string;
Right: string;
Custom: string;
};
Axis: {
Vertical: string;
Horizontal: string;
};
Selection: {
Default: number;
None: number;
Single: number;
Multi: number;
All: number;
};
HorizontalAlign: {
Left: string;
Right: string;
Center: string;
Stretch: string;
};
VerticalAlign: {
Middle: string;
Top: string;
Bottom: string;
Stretch: string;
};
StartOfWeek: number;
}

7
dist/lib/core/wrapper/layout/adapt/adapt.leftvertical.d.ts vendored

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

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

@ -2,3 +2,6 @@ import { Layout } from "../layout";
export declare class FloatLeftLayout extends Layout {
static xtype: string;
}
export declare class FloatRightLayout extends Layout {
static xtype: string;
}

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

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

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

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

88
dist/lib/index.d.ts vendored

@ -6,37 +6,38 @@ import { _BasicButton, _BasicButtonStatic, BasicButton } from "./base/single/but
import { _NodeButton, NodeButton } from "./base/single/button/button.node";
import { _Button, _ButtonStatic, Button } from "./base/single/button/buttons/button";
import { TextButton, _TextButton, _TextButtonStatic } from "./base/single/button/buttons/button.text";
import { _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { IconTextItem, _IconTextItem, _IconTextItemStatic } from "./base/single/button/listitem/icontextitem";
import { _Editor, _EditorStatic, Editor } from "./base/single/editor/editor";
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 { Checkbox, _Checkbox, _CheckboxStatic } from "./base/single/input/checkbox";
import { Input, _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, Text } from "./base/single/text";
import { _Trigger } from "./base/single/trigger/trigger";
import { Trigger, _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, _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 { SearchTextValueCombo, _SearchTextValueCombo, _SearchTextValueComboStatic } from "./case/combo/searchtextvaluecombo/combo.searchtextvalue";
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 { LoadingPane, _LoadingPane } from "./case/loading/loading_pane";
import { AllValueMultiTextValueCombo, _AllValueMultiTextValueCombo, _AllValueMultiTextValueComboStatic } from "./component/allvaluemultitextvaluecombo/allvalue.multitextvalue.combo";
import { _AbstractTreeValueChooser, AbstractTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser";
import { _AbstractListTreeValueChooser, AbstractListTreeValueChooser } from "./component/treevaluechooser/abstract.treevaluechooser.list";
import { _Action, _ActionFactory } from "./core/action/action";
import { _ShowAction } from "./core/action/action.show";
import { Action, ActionFactory, _Action, _ActionFactory } from "./core/action/action";
import { ShowAction, _ShowAction } from "./core/action/action.show";
import { _base } from "./core/base";
import { _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import { Behavior, BehaviorFactory, _Behavior, _BehaviorFactory } from "./core/behavior/behavior";
import { HighlightBehavior, _HighlightBehavior } from "./core/behavior/behavior.highlight";
import { RedMarkBehavior, _RedMarkBehavior } from "./core/behavior/behavior.redmark";
import * as decorator from "./core/decorator/decorator";
import { _func } from "./core/func";
import { _i18n } from "./core/i18n";
import { _Plugin } from "./core/plugin";
import { _OB } from "./core/ob";
import { _var } from "./core/var";
import { OB, _OB } from "./core/ob";
import { _Widget, _WidgetStatic, Widget } from "./core/widget";
import { _inject } from "./core/inject";
import { Layout, _Layout } from "./core/wrapper/layout";
@ -46,7 +47,7 @@ import { VerticalLayout, _VerticalLayout } from "./core/wrapper/layout/layout.ve
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";
import { LeftVerticalAdaptLayout, _LeftVerticalAdapt } from "./core/wrapper/layout/adapt/adapt.leftvertical";
import { LeftRightVerticalAdaptLayout, RightVerticalAdaptLayout } from "./core/wrapper/layout/adapt/adapt.leftrightvertical";
import { IconTextIconItem } from "./base/single/button/listitem/icontexticonitem";
import { HorizontalAutoLayout } from "./core/wrapper/layout/adapt/auto.horizontal";
@ -68,7 +69,7 @@ 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 { FloatLeftLayout, FloatRightLayout } 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";
@ -115,13 +116,38 @@ import { MultiLayerSingleTreeCombo } from "./widget/multilayersingletree/multila
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";
import { TextValueDownListCombo } from "./widget/textvaluedownlistcombo/combo.textvaluedownlist";
import { Switch } from "./case/button/switch";
import { HorizontalLayout } from "./core/wrapper/layout/layout.horizontal";
import { ShelterEditor } from "./case/editor/editor.shelter";
import { SelectTextTrigger } from "./case/trigger/trigger.text.select";
import { DateInterval } from "./widget/timeinterval/dateinterval";
import { DynamicDatePane } from "./widget/datepane/datepane";
import { AllCountPager } from "./case/pager/pager.all.count";
import { PopupView } from "./base/layer/layer.popup";
import { BubblePopupView, BubblePopupBarView, TextBubblePopupBarView } from "./case/combo/bubblecombo/popup.bubble";
import { ArrowTreeGroupNodeCheckbox } from "./case/checkbox/check.arrownode";
import { NumberInterval } from "./widget/numberinterval/numberinterval";
import { DynamicYearQuarterCombo } from "./widget/yearquarter/combo.yearquarter";
import { DynamicYearCombo } from "./widget/year/combo.year";
import { IntervalSlider } from "./widget/intervalslider/intervalslider";
import { MultiSelectInsertList } from "./widget/multiselectlist/multiselectlist.insert";
import { YearMonthInterval } from "./widget/yearmonthinterval/yearmonthinterval";
import { NumberEditor } from "./widget/numbereditor/numbereditor";
import { TextValueCheckCombo } from "./case/combo/textvaluecheckcombo/combo.textvaluecheck";
import { LinearSegment } from "./case/linersegment/linear.segment";
import { Img } from "./base/single/img/img";
import { EditorIconCheckCombo } from "./case/combo/editoriconcheckcombo/combo.editiconcheck";
import { IconTextValueCombo } from './case/combo/icontextvaluecombo/combo.icontextvalue';
import { ListView } from './base/list/listview';
import { FloatCenterLayout } from './core/wrapper/layout/middle/middle.float.center';
declare type ClassConstructor<T extends {}> = T & {
new (config: any): T;
(config: any): T;
readonly prototype: T;
readonly xtype: string;
};
export interface BI extends _func, _i18n, _base, _inject {
export interface BI extends _func, _i18n, _base, _inject, _var {
OB: ClassConstructor<_OB>;
Plugin: _Plugin;
Widget: ClassConstructor<_Widget> & _WidgetStatic;
@ -192,6 +218,7 @@ export interface BI extends _func, _i18n, _base, _inject {
AbsoluteCenterLayout: typeof AbsoluteCenterLayout;
HorizontalAdaptLayout: typeof HorizontalAdaptLayout;
FloatLeftLayout: typeof FloatLeftLayout;
FloatRightLayout: typeof FloatRightLayout;
CenterAdaptLayout: typeof CenterAdaptLayout;
VerticalAdaptLayout: typeof VerticalAdaptLayout;
IconButton: typeof IconButton;
@ -240,9 +267,36 @@ export interface BI extends _func, _i18n, _base, _inject {
CardLayout: typeof CardLayout;
DynamicYearMonthCombo: typeof DynamicYearMonthCombo;
TimeCombo: typeof TimeCombo;
TextValueDownListCombo: typeof TextValueDownListCombo;
Switch: typeof Switch;
HorizontalLayout: typeof HorizontalLayout;
ShelterEditor: typeof ShelterEditor;
SelectTextTrigger: typeof SelectTextTrigger;
DateInterval: typeof DateInterval;
DynamicDatePane: typeof DynamicDatePane;
AllCountPager: typeof AllCountPager;
PopupView: typeof PopupView;
BubblePopupView: typeof BubblePopupView;
BubblePopupBarView: typeof BubblePopupBarView;
TextBubblePopupBarView: typeof TextBubblePopupBarView;
ArrowTreeGroupNodeCheckbox: typeof ArrowTreeGroupNodeCheckbox;
NumberInterval: typeof NumberInterval;
DynamicYearQuarterCombo: typeof DynamicYearQuarterCombo;
DynamicYearCombo: typeof DynamicYearCombo;
IntervalSlider: typeof IntervalSlider;
MultiSelectInsertList: typeof MultiSelectInsertList;
YearMonthInterval: typeof YearMonthInterval;
TextValueCheckCombo: typeof TextValueCheckCombo;
NumberEditor: typeof NumberEditor;
LinearSegment: typeof LinearSegment;
Img: typeof Img;
EditorIconCheckCombo: typeof EditorIconCheckCombo;
IconTextValueCombo: typeof IconTextValueCombo;
ListView: typeof ListView;
FloatCenterLayout: typeof FloatCenterLayout;
}
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, 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, };
export { OB, Widget, Single, BasicButton, Checkbox, Icon, LeftVerticalAdaptLayout, LeftRightVerticalAdaptLayout, SearchTextValueCombo, Input, IconTextItem, AllValueMultiTextValueCombo, IconTextIconItem, Layout, HorizontalAutoLayout, InlineVerticalAdaptLayout, RightVerticalAdaptLayout, TableAdaptLayout, AbsoluteCenterLayout, HorizontalAdaptLayout, FloatLeftLayout, FloatRightLayout, VerticalLayout, AbsoluteLayout, DefaultLayout, HTapeLayout, CenterAdaptLayout, VTapeLayout, VerticalAdaptLayout, IconButton, Trigger, TriggerIconButton, Action, ActionFactory, ShowAction, Behavior, BehaviorFactory, RedMarkBehavior, HighlightBehavior, LoadingPane, 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, TextValueDownListCombo, Switch, HorizontalLayout, ShelterEditor, SelectTextTrigger, DateInterval, DynamicDatePane, AllCountPager, PopupView, BubblePopupView, BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, NumberInterval, DynamicYearQuarterCombo, DynamicYearCombo, IntervalSlider, MultiSelectInsertList, YearMonthInterval, TextValueCheckCombo, NumberEditor, LinearSegment, Img, EditorIconCheckCombo, IconTextValueCombo, ListView, FloatCenterLayout, };

7
dist/lib/widget/datepane/datepane.d.ts vendored

@ -0,0 +1,7 @@
import { Widget } from "../../core/widget";
export declare class DynamicDatePane extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static Static: 1;
static Dynamic: 2;
}

9
dist/lib/widget/dynamicdate/dynamicdate.combo.d.ts vendored

@ -15,4 +15,13 @@ export declare class DynamicDateCombo extends Single {
setMaxDate(maxDate: string): void;
getKey(): string;
hidePopupView(): void;
getValue(): DynamicDataComboValue;
}
export interface DynamicDataComboValue {
type: number;
value: {
year: number;
month: number;
day: number;
};
}

16
dist/lib/widget/intervalslider/intervalslider.d.ts vendored

@ -0,0 +1,16 @@
import { Single } from '../../base/single/single';
export declare class IntervalSlider extends Single {
static xtype: string;
static EVENT_CHANGE: string;
max: number;
min: number;
getValue(): {
min: number;
max: number;
};
setMinAndMax(v: {
min: number;
max: number;
}): void;
reset(): void;
}

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

@ -29,12 +29,12 @@ export declare class MultiSelectInsertCombo extends Single {
showView(): void;
hideView(): void;
setValue(value?: {
type: string;
type: number;
value: string[];
assist: string[];
}): void;
getValue(): {
type: string;
type: number;
value: string[];
assist: string[];
};

9
dist/lib/widget/multiselectlist/multiselectlist.insert.d.ts vendored

@ -0,0 +1,9 @@
import { Single } from '../../base/single/single';
export declare class MultiSelectInsertList extends Single {
static xtype: string;
static REQ_GET_DATA_LENGTH: 1;
static REQ_GET_ALL_DATA: -1;
static EVENT_CHANGE: string;
isAllSelected(): boolean;
resize(): void;
}

14
dist/lib/widget/numbereditor/numbereditor.d.ts vendored

@ -0,0 +1,14 @@
import { Widget } from "../../core/widget";
export declare class NumberEditor extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_CHANGE: string;
focus(): void;
isEditing(): void;
setUpEnable(v: boolean): void;
setDownEnable(v: boolean): void;
getLastValidValue(): string;
getLastChangedValue(): string;
getValue(): string;
setValue(v: string): void;
}

17
dist/lib/widget/numberinterval/numberinterval.d.ts vendored

@ -0,0 +1,17 @@
import { Single } from '../../base/single/single';
export declare class NumberInterval extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_CONFIRM: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
isStateValid(): boolean;
setMinEnable(v: boolean): void;
setCloseMinEnable(v: boolean): void;
setMaxEnable(v: boolean): void;
setCloseMaxEnable(v: boolean): void;
showNumTip(): void;
hideNumTip(): void;
setNumTip(v: string): void;
getNumTip(): void;
}

6
dist/lib/widget/textvaluedownlistcombo/combo.textvaluedownlist.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from "../../core/widget";
export declare class TextValueDownListCombo extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
getValue<T>(): [T];
}

12
dist/lib/widget/timeinterval/dateinterval.d.ts vendored

@ -0,0 +1,12 @@
import { Single } from "../../base/single/single";
import { DynamicDataComboValue } from "../dynamicdate/dynamicdate.combo";
export declare class DateInterval extends Single {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
getValue(): {
start: DynamicDataComboValue;
end: DynamicDataComboValue;
};
}

6
dist/lib/widget/year/combo.year.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}

12
dist/lib/widget/yearmonthinterval/yearmonthinterval.d.ts vendored

@ -0,0 +1,12 @@
import { Single } from '../../base/single/single';
export declare class YearMonthInterval extends Single {
static xtype: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_POPUPVIEW: string;
getValue(): {
start: number;
end: number;
};
}

6
dist/lib/widget/yearquarter/combo.yearquarter.d.ts vendored

@ -0,0 +1,6 @@
import { Widget } from "../../core/widget";
export declare class DynamicYearQuarterCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
}

2
dist/resource.css vendored

File diff suppressed because one or more lines are too long

138
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.20201218100233",
"version": "2.0.20201223135207",
"description": "fineui",
"main": "dist/fineui.min.js",
"types": "dist/lib/index.d.ts",

16
src/core/platform/web/jquery/_jquery.js vendored

@ -4520,12 +4520,18 @@
// cleanData must set properties to undefined rather than use removeAttribute
div[ jQuery.expando ] = 1;
support.attributes = !div.getAttribute( jQuery.expando );
// Support: IE <=9 only
// IE <=9 replaces <option> tags with their contents when inserted outside of
// the select element.
div.innerHTML = "<option></option>";
support.option = !!div.lastChild;
} )();
// We have to close these tags to support XHTML (#13200)
var wrapMap = {
option: [ 1, "<select multiple='multiple'>", "</select>" ],
// option: [ 1, "<select multiple='multiple'>", "</select>" ],
legend: [ 1, "<fieldset>", "</fieldset>" ],
area: [ 1, "<map>", "</map>" ],
@ -4541,12 +4547,16 @@
_default: support.htmlSerialize ? [ 0, "", "" ] : [ 1, "X<div>", "</div>" ]
};
// Support: IE8-IE9
wrapMap.optgroup = wrapMap.option;
// // Support: IE8-IE9
// wrapMap.optgroup = wrapMap.option;
wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
wrapMap.th = wrapMap.td;
// Support: IE <=9 only
if ( !support.option ) {
wrapMap.optgroup = wrapMap.option = [ 1, "<select multiple='multiple'>", "</select>" ];
}
function getAll( context, tag ) {
var elems, elem,

22
src/router/router.js

@ -298,7 +298,15 @@
return _.map(params, function (param, i) {
// Don't decode the search params.
if (i === params.length - 1) return param || null;
return param ? decodeURIComponent(param) : null;
var resultParam = null;
if (param) {
try {
resultParam = decodeURIComponent(param);
} catch (e) {
resultParam = param;
}
}
return resultParam;
});
}
@ -364,7 +372,11 @@
// Get the pathname and search params, without the root.
getPath: function () {
var path = decodeURI(this.location.pathname + this.getSearch());
var path = this.location.pathname + this.getSearch();
try {
path = decodeURI(path);
} catch(e) {
}
var root = this.root.slice(0, -1);
if (!path.indexOf(root)) path = path.slice(root.length);
return path.charAt(0) === "/" ? path.slice(1) : path;
@ -552,7 +564,11 @@
var url = root + fragment;
// Strip the hash and decode for matching.
fragment = decodeURI(fragment.replace(pathStripper, ""));
fragment = fragment.replace(pathStripper, "")
try {
fragment = decodeURI(fragment);
} catch(e) {
}
if (this.fragment === fragment) return;
this.fragment = fragment;

2
src/widget/date/calendar/combo.year.date.js

@ -58,6 +58,7 @@ BI.YearDateCombo = BI.inherit(BI.Trigger, {
// BI-22551 popup未初始化传入的behavior无效
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () {
self.doBehavior();
self.fireEvent(BI.YearDateCombo.EVENT_BEFORE_POPUPVIEW);
});
},
@ -79,4 +80,5 @@ BI.YearDateCombo = BI.inherit(BI.Trigger, {
}
});
BI.YearDateCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.YearDateCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.year_date_combo", BI.YearDateCombo);

7
src/widget/date/calendar/picker.date.js

@ -80,6 +80,9 @@ BI.DatePicker = BI.inherit(BI.Widget, {
});
self.fireEvent(BI.DatePicker.EVENT_CHANGE);
});
this.year.on(BI.YearDateCombo.EVENT_BEFORE_POPUPVIEW, function () {
self.fireEvent(BI.DatePicker.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
});
this.month = BI.createWidget({
type: "bi.month_date_combo",
behaviors: o.behaviors,
@ -92,6 +95,9 @@ BI.DatePicker = BI.inherit(BI.Widget, {
});
self.fireEvent(BI.DatePicker.EVENT_CHANGE);
});
this.month.on(BI.YearDateCombo.EVENT_BEFORE_POPUPVIEW, function () {
self.fireEvent(BI.DatePicker.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
});
BI.createWidget({
type: "bi.htape",
@ -218,4 +224,5 @@ BI.DatePicker = BI.inherit(BI.Widget, {
},
});
BI.DatePicker.EVENT_CHANGE = "EVENT_CHANGE";
BI.DatePicker.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.date_picker", BI.DatePicker);

4
src/widget/date/calendar/picker.year.js

@ -57,6 +57,9 @@ BI.YearPicker = BI.inherit(BI.Widget, {
self.setValue(self.year.getValue());
self.fireEvent(BI.YearPicker.EVENT_CHANGE);
});
this.year.on(BI.YearDateCombo.EVENT_BEFORE_POPUPVIEW, function () {
self.fireEvent(BI.YearPicker.EVENT_BEFORE_POPUPVIEW);
});
BI.createWidget({
type: "bi.htape",
@ -126,4 +129,5 @@ BI.YearPicker = BI.inherit(BI.Widget, {
}
});
BI.YearPicker.EVENT_CHANGE = "EVENT_CHANGE";
BI.YearPicker.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.shortcut("bi.year_picker", BI.YearPicker);

5
src/widget/date/calendar/popup.calendar.date.js

@ -76,6 +76,10 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
self.calendar.setSelect(BI.Calendar.getPageByDateJSON(self.selectedTime));
});
this.datePicker.on(BI.DatePicker.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW, function () {
self.fireEvent(BI.DateCalendarPopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
});
this.calendar.on(BI.Navigation.EVENT_CHANGE, function () {
self.selectedTime = self.calendar.getValue();
self.setValue(self.selectedTime);
@ -144,4 +148,5 @@ BI.DateCalendarPopup = BI.inherit(BI.Widget, {
}
});
BI.DateCalendarPopup.EVENT_CHANGE = "EVENT_CHANGE";
BI.DateCalendarPopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.date_calendar_popup", BI.DateCalendarPopup);

4
src/widget/datepane/card.static.datepane.js

@ -46,6 +46,9 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
self.calendar.setValue(self.selectedTime);
day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
});
this.datePicker.on(BI.DatePicker.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW, function () {
self.fireEvent(BI.StaticDatePaneCard.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
});
this.calendar = BI.createWidget({
direction: "custom",
@ -148,4 +151,5 @@ BI.StaticDatePaneCard = BI.inherit(BI.Widget, {
}
});
BI.StaticDatePaneCard.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW"
BI.shortcut("bi.static_date_pane_card", BI.StaticDatePaneCard);

6
src/widget/datepane/datepane.js

@ -69,6 +69,11 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
action: function () {
self.fireEvent(BI.DynamicDatePane.EVENT_CHANGE);
}
}, {
eventName: "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW",
action: function () {
self.fireEvent(BI.DynamicDatePane.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}],
ref: function () {
self.ymd = this;
@ -148,6 +153,7 @@ BI.DynamicDatePane = BI.inherit(BI.Widget, {
});
BI.DynamicDatePane.EVENT_CHANGE = "EVENT_CHANGE";
BI.DynamicDatePane.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.dynamic_date_pane", BI.DynamicDatePane);

5
src/widget/datetimepane/card.static.datetimepane.js

@ -44,6 +44,10 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
day !== 0 && self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE);
});
this.datePicker.on(BI.DatePicker.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW, function () {
self.fireEvent(BI.StaticDateTimePaneCard.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
});
this.calendar = BI.createWidget({
direction: "custom",
// logic: {
@ -167,4 +171,5 @@ BI.StaticDateTimePaneCard = BI.inherit(BI.Widget, {
}
});
BI.StaticDateTimePaneCard.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.static_date_time_pane_card", BI.StaticDateTimePaneCard);

5
src/widget/datetimepane/datetimepane.js

@ -68,6 +68,11 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
action: function () {
self.fireEvent("EVENT_CHANGE");
}
}, {
eventName: "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW",
action: function () {
self.fireEvent("EVENT_BEFORE_YEAR_MONTH_POPUPVIEW");
}
}],
ref: function () {
self.ymd = this;

6
src/widget/dynamicdate/dynamicdate.combo.js

@ -179,6 +179,11 @@ BI.DynamicDateCombo = BI.inherit(BI.Single, {
self.combo.hideView();
self.fireEvent(BI.DynamicDateCombo.EVENT_CONFIRM);
}
}, {
eventName: BI.DynamicDatePopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () {
self.fireEvent(BI.DynamicDateCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}]
},
stopPropagation: false
@ -307,6 +312,7 @@ BI.DynamicDateCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.DynamicDateCombo.EVENT_VALID = "EVENT_VALID";
BI.DynamicDateCombo.EVENT_ERROR = "EVENT_ERROR";
BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.DynamicDateCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.dynamic_date_combo", BI.DynamicDateCombo);

6
src/widget/dynamicdate/dynamicdate.popup.js

@ -117,6 +117,11 @@ BI.DynamicDatePopup = BI.inherit(BI.Widget, {
action: function () {
self.fireEvent(BI.DynamicDatePopup.EVENT_CHANGE);
}
}, {
eventName: BI.DateCalendarPopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () {
self.fireEvent(BI.DynamicDatePopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}],
ref: function () {
self.ymd = this;
@ -228,4 +233,5 @@ BI.DynamicDatePopup.EVENT_CHANGE = "EVENT_CHANGE";
BI.DynamicDatePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
BI.DynamicDatePopup.BUTTON_lABEL_EVENT_CHANGE = "BUTTON_lABEL_EVENT_CHANGE";
BI.DynamicDatePopup.BUTTON_CLEAR_EVENT_CHANGE = "BUTTON_CLEAR_EVENT_CHANGE";
BI.DynamicDatePopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.dynamic_date_popup", BI.DynamicDatePopup);

6
src/widget/dynamicdatetime/dynamicdatetime.combo.js

@ -187,6 +187,11 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, {
self.combo.hideView();
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_CONFIRM);
}
}, {
eventName: BI.DynamicDateTimePopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () {
self.fireEvent(BI.DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}]
},
stopPropagation: false
@ -315,6 +320,7 @@ BI.DynamicDateTimeCombo.EVENT_CHANGE = "EVENT_CHANGE";
BI.DynamicDateTimeCombo.EVENT_VALID = "EVENT_VALID";
BI.DynamicDateTimeCombo.EVENT_ERROR = "EVENT_ERROR";
BI.DynamicDateTimeCombo.EVENT_BEFORE_POPUPVIEW = "EVENT_BEFORE_POPUPVIEW";
BI.DynamicDateTimeCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.dynamic_date_time_combo", BI.DynamicDateTimeCombo);

9
src/widget/dynamicdatetime/dynamicdatetime.popup.js

@ -116,7 +116,13 @@ BI.DynamicDateTimePopup = BI.inherit(BI.Widget, {
max: self.options.max,
ref: function () {
self.ymd = this;
}
},
listeners: [{
eventName: BI.DateCalendarPopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () {
self.fireEvent(BI.DynamicDateTimePopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}],
}, {
el: {
type: "bi.dynamic_date_time_select",
@ -242,4 +248,5 @@ BI.DynamicDateTimePopup.EVENT_CHANGE = "EVENT_CHANGE";
BI.DynamicDateTimePopup.BUTTON_OK_EVENT_CHANGE = "BUTTON_OK_EVENT_CHANGE";
BI.DynamicDateTimePopup.BUTTON_lABEL_EVENT_CHANGE = "BUTTON_lABEL_EVENT_CHANGE";
BI.DynamicDateTimePopup.BUTTON_CLEAR_EVENT_CHANGE = "BUTTON_CLEAR_EVENT_CHANGE";
BI.DynamicDateTimePopup.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.dynamic_date_time_popup", BI.DynamicDateTimePopup);

10
src/widget/multiselect/trigger/button.checkselected.js

@ -51,6 +51,14 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
o.itemsCreator({
type: BI.MultiSelectCombo.REQ_GET_DATA_LENGTH
}, function (res) {
if (BI.isNotEmptyString(res.count)) {
BI.nextTick(function () {
self.numberCounter.setText(res.count);
self.setVisible(true);
});
return;
}
var length = res.count - ob.value.length;
BI.nextTick(function () {
self.numberCounter.setText(length);
@ -88,4 +96,4 @@ BI.MultiSelectCheckSelectedButton = BI.inherit(BI.Single, {
});
BI.MultiSelectCheckSelectedButton.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.multi_select_check_selected_button", BI.MultiSelectCheckSelectedButton);
BI.shortcut("bi.multi_select_check_selected_button", BI.MultiSelectCheckSelectedButton);

9
src/widget/timeinterval/dateinterval.js

@ -71,6 +71,12 @@ BI.DateInterval = BI.inherit(BI.Single, {
behaviors: o.behaviors,
value: v,
height: o.height,
listeners: [{
eventName: BI.DynamicDateCombo.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW,
action: function () {
self.fireEvent(BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}]
});
combo.on(BI.DynamicDateCombo.EVENT_ERROR, function () {
self._clearTitle();
@ -180,4 +186,5 @@ BI.DateInterval = BI.inherit(BI.Single, {
BI.DateInterval.EVENT_VALID = "EVENT_VALID";
BI.DateInterval.EVENT_ERROR = "EVENT_ERROR";
BI.DateInterval.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.date_interval", BI.DateInterval);
BI.DateInterval.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.date_interval", BI.DateInterval);

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save