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