|
|
|
@ -29,11 +29,12 @@ export class DynamicDateTimeSelect extends Widget {
|
|
|
|
|
return { |
|
|
|
|
baseCls: "bi-date-time-select", |
|
|
|
|
editorHeight: SIZE_CONSANTS.LIST_ITEM_HEIGHT, |
|
|
|
|
timeSelectTypes: [DynamicDateTimeSelect.HOUR, DynamicDateTimeSelect.MINUTE, DynamicDateTimeSelect.SECOND], |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
|
const { editorHeight } = this.options; |
|
|
|
|
const { editorHeight, timeSelectTypes } = this.options; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: CenterAdaptLayout.xtype, |
|
|
|
@ -44,6 +45,8 @@ export class DynamicDateTimeSelect extends Widget {
|
|
|
|
|
{ |
|
|
|
|
el: { |
|
|
|
|
type: NumberEditor.xtype, |
|
|
|
|
disabled: !timeSelectTypes.includes(DynamicDateTimeSelect.HOUR), |
|
|
|
|
warningTitle: i18nText("BI-Basic_Do_Not_Support_Modification"), |
|
|
|
|
ref: _ref => { |
|
|
|
|
this.hour = _ref; |
|
|
|
|
}, |
|
|
|
@ -89,6 +92,8 @@ export class DynamicDateTimeSelect extends Widget {
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: NumberEditor.xtype, |
|
|
|
|
disabled: !timeSelectTypes.includes(DynamicDateTimeSelect.MINUTE), |
|
|
|
|
warningTitle: i18nText("BI-Basic_Do_Not_Support_Modification"), |
|
|
|
|
ref: _ref => { |
|
|
|
|
this.minute = _ref; |
|
|
|
|
}, |
|
|
|
@ -133,6 +138,8 @@ export class DynamicDateTimeSelect extends Widget {
|
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: NumberEditor.xtype, |
|
|
|
|
disabled: !timeSelectTypes.includes(DynamicDateTimeSelect.SECOND), |
|
|
|
|
warningTitle: i18nText("BI-Basic_Do_Not_Support_Modification"), |
|
|
|
|
ref: _ref => { |
|
|
|
|
this.second = _ref; |
|
|
|
|
}, |
|
|
|
|