Browse Source

KERNEL-7586 refactor: ts类型补充

master
Zhenfei.Li 4 years ago
parent
commit
f6c7b3d9a4
  1. 5
      src/widget/datetimepane/datetimepane.js
  2. 5
      typescript/widget/datepane/datepane.ts
  3. 11
      typescript/widget/datetimepane/datetimepane.ts
  4. 1
      typescript/widget/dynamicdate/dynamicdate.combo.ts
  5. 1
      typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts
  6. 5
      typescript/widget/timeinterval/dateinterval.ts
  7. 18
      typescript/widget/timeinterval/timeinterval.ts
  8. 4
      typescript/widget/year/combo.year.ts
  9. 4
      typescript/widget/yearmonth/combo.yearmonth.ts
  10. 4
      typescript/widget/yearmonthinterval/yearmonthinterval.ts
  11. 4
      typescript/widget/yearquarter/combo.yearquarter.ts

5
src/widget/datetimepane/datetimepane.js

@ -73,12 +73,12 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
listeners: [{
eventName: "EVENT_CHANGE",
action: function () {
self.fireEvent("EVENT_CHANGE");
self.fireEvent(BI.DynamicDateTimePane.EVENT_CHANGE);
}
}, {
eventName: "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW",
action: function () {
self.fireEvent("EVENT_BEFORE_YEAR_MONTH_POPUPVIEW");
self.fireEvent(BI.DynamicDateTimePane.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW);
}
}],
ref: function () {
@ -205,6 +205,7 @@ BI.DynamicDateTimePane = BI.inherit(BI.Widget, {
}
});
BI.DynamicDateTimePane.EVENT_CHANGE = "EVENT_CHANGE";
BI.DynamicDateTimePane.EVENT_BEFORE_YEAR_MONTH_POPUPVIEW = "EVENT_BEFORE_YEAR_MONTH_POPUPVIEW";
BI.shortcut("bi.dynamic_date_time_pane", BI.DynamicDateTimePane);
BI.extend(BI.DynamicDateTimePane, {

5
typescript/widget/datepane/datepane.ts

@ -3,6 +3,11 @@ import { Widget } from "../../core/widget";
export declare class DynamicDatePane extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
static Static: 1;
static Dynamic: 2;
setMinDate(minDate: string): void;
setMaxDate(minDate: string): void;
}

11
typescript/widget/datetimepane/datetimepane.ts

@ -0,0 +1,11 @@
import { Widget } from "../../core/widget";
export declare class DynamicDateTimePane extends Widget {
static xtype: string;
static EVENT_CHANGE: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
setMinDate(minDate: string): void;
setMaxDate(minDate: string): void;
}

1
typescript/widget/dynamicdate/dynamicdate.combo.ts

@ -13,6 +13,7 @@ export declare class DynamicDateCombo extends Single {
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
setMinDate(minDate: string): void;

1
typescript/widget/dynamicdatetime/dynamicdatetime.combo.ts

@ -10,6 +10,7 @@ export declare class DynamicDateTimeCombo extends Single {
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_POPUPVIEW: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
static Static: 1;
static Dynamic: 2;

5
typescript/widget/timeinterval/dateinterval.ts

@ -6,9 +6,14 @@ export declare class DateInterval extends Single {
static EVENT_CHANGE: string;
static EVENT_VALID: string;
static EVENT_ERROR: string;
static EVENT_BEFORE_YEAR_MONTH_POPUPVIEW: string;
getValue(): {
start: DynamicDataComboValue;
end: DynamicDataComboValue;
};
setMinDate(minDate: string): void;
setMaxDate(minDate: string): void;
}

18
typescript/widget/timeinterval/timeinterval.ts

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

4
typescript/widget/year/combo.year.ts

@ -4,4 +4,8 @@ export declare class DynamicYearCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void;
}

4
typescript/widget/yearmonth/combo.yearmonth.ts

@ -11,4 +11,8 @@ export declare class DynamicYearMonthCombo extends Single {
hideView(): void;
getKey(): string;
setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void;
}

4
typescript/widget/yearmonthinterval/yearmonthinterval.ts

@ -11,4 +11,8 @@ export declare class YearMonthInterval extends Single {
start: number;
end: number;
};
setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void;
}

4
typescript/widget/yearquarter/combo.yearquarter.ts

@ -4,4 +4,8 @@ export declare class DynamicYearQuarterCombo extends Widget {
static xtype: string;
static EVENT_CONFIRM: string;
static EVENT_BEFORE_POPUPVIEW: string;
setMinDate(minDate: string): void;
setMaxDate(maxDate: string): void;
}

Loading…
Cancel
Save