diff --git a/typescript/index.ts b/typescript/index.ts index 3bd21c785..162e623e8 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -126,6 +126,12 @@ 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"; @@ -269,8 +275,14 @@ export interface BI extends _func, _i18n, _base, _inject { 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, + NumberEditor: typeof NumberEditor; } export default { @@ -406,6 +418,12 @@ export { BubblePopupBarView, TextBubblePopupBarView, ArrowTreeGroupNodeCheckbox, + NumberInterval, + DynamicYearQuarterCombo, + DynamicYearCombo, + IntervalSlider, + MultiSelectInsertList, + YearMonthInterval, TextValueCheckCombo, NumberEditor, }; diff --git a/typescript/widget/intervalslider/intervalslider.ts b/typescript/widget/intervalslider/intervalslider.ts new file mode 100644 index 000000000..e16b9a215 --- /dev/null +++ b/typescript/widget/intervalslider/intervalslider.ts @@ -0,0 +1,22 @@ +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 +} diff --git a/typescript/widget/multiselectlist/multiselectlist.insert.ts b/typescript/widget/multiselectlist/multiselectlist.insert.ts new file mode 100644 index 000000000..d37a33535 --- /dev/null +++ b/typescript/widget/multiselectlist/multiselectlist.insert.ts @@ -0,0 +1,12 @@ +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; +} diff --git a/typescript/widget/numberinterval/numberinterval.ts b/typescript/widget/numberinterval/numberinterval.ts new file mode 100644 index 000000000..375226621 --- /dev/null +++ b/typescript/widget/numberinterval/numberinterval.ts @@ -0,0 +1,27 @@ +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; +} diff --git a/typescript/widget/year/combo.year.ts b/typescript/widget/year/combo.year.ts new file mode 100644 index 000000000..32afe0aad --- /dev/null +++ b/typescript/widget/year/combo.year.ts @@ -0,0 +1,7 @@ +import { Widget } from "../../core/widget"; + +export declare class DynamicYearCombo extends Widget { + static xtype: string; + static EVENT_CONFIRM: string; + static EVENT_BEFORE_POPUPVIEW: string; +} diff --git a/typescript/widget/yearmonthinterval/yearmonthinterval.ts b/typescript/widget/yearmonthinterval/yearmonthinterval.ts new file mode 100644 index 000000000..57a0c2d9e --- /dev/null +++ b/typescript/widget/yearmonthinterval/yearmonthinterval.ts @@ -0,0 +1,14 @@ +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; + }; +} diff --git a/typescript/widget/yearquarter/combo.yearquarter.ts b/typescript/widget/yearquarter/combo.yearquarter.ts new file mode 100644 index 000000000..b735dbc10 --- /dev/null +++ b/typescript/widget/yearquarter/combo.yearquarter.ts @@ -0,0 +1,7 @@ +import { Widget } from "../../core/widget"; + +export declare class DynamicYearQuarterCombo extends Widget { + static xtype: string; + static EVENT_CONFIRM: string; + static EVENT_BEFORE_POPUPVIEW: string; +}