|
|
|
@ -67811,15 +67811,14 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
return BI.extend(BI.IconTextValueCombo.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
|
baseClass: "bi-icon-text-value-combo", |
|
|
|
|
height: 30, |
|
|
|
|
value: "", |
|
|
|
|
el: {} |
|
|
|
|
value: "" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.IconTextValueCombo.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.trigger = BI.createWidget(o.el, { |
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.select_icon_text_trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
@ -68016,7 +68015,7 @@ BI.TextValueCheckCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.TextValueCheckCombo.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.trigger = BI.createWidget(o.el, { |
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.select_text_trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
@ -68214,15 +68213,14 @@ BI.TextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 30, |
|
|
|
|
chooseType: BI.ButtonGroup.CHOOSE_TYPE_SINGLE, |
|
|
|
|
text: "", |
|
|
|
|
value: "", |
|
|
|
|
el: {} |
|
|
|
|
value: "" |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.TextValueCombo.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.trigger = BI.createWidget(o.el, { |
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.select_text_trigger", |
|
|
|
|
items: o.items, |
|
|
|
|
height: o.height, |
|
|
|
@ -78833,6 +78831,7 @@ BI.shortcut("bi.date_combo", BI.DateCombo);BI.DateTrigger = BI.inherit(BI.Trigge
|
|
|
|
|
el: this.editor |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
}, |
|
|
|
|
_dateCheck: function (date) { |
|
|
|
|
return Date.parseDateTime(date, "%Y-%x-%d").print("%Y-%x-%d") == date || Date.parseDateTime(date, "%Y-%X-%d").print("%Y-%X-%d") == date || Date.parseDateTime(date, "%Y-%x-%e").print("%Y-%x-%e") == date || Date.parseDateTime(date, "%Y-%X-%e").print("%Y-%X-%e") == date; |
|
|
|
@ -79109,6 +79108,7 @@ BI.DatePaneWidget = BI.inherit(BI.Widget, {
|
|
|
|
|
self.setValue(self.selectedTime); |
|
|
|
|
self.fireEvent(BI.DateCalendarPopup.EVENT_CHANGE); |
|
|
|
|
}); |
|
|
|
|
this.setValue(o.selectedTime); |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -82846,7 +82846,8 @@ BI.MonthCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.month_trigger" |
|
|
|
|
type: "bi.month_trigger", |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.trigger.on(BI.MonthTrigger.EVENT_CONFIRM, function (v) { |
|
|
|
@ -82874,7 +82875,8 @@ BI.MonthCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.month_popup", |
|
|
|
|
behaviors: o.behaviors |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.MonthPopup.EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(self.popup.getValue()); |
|
|
|
@ -82972,7 +82974,8 @@ BI.MonthPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.center_adapt", |
|
|
|
|
vgap: 1, |
|
|
|
|
hgap: 2 |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.month.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
@ -83077,6 +83080,7 @@ BI.MonthTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
}, |
|
|
|
|
setValue: function (v) { |
|
|
|
|
if(BI.isNotNull(v)) { |
|
|
|
@ -83277,11 +83281,12 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
|
|
|
|
|
var self = this, opts = this.options; |
|
|
|
|
this.storeTriggerValue = ""; |
|
|
|
|
var date = Date.getDate(); |
|
|
|
|
this.storeValue = null; |
|
|
|
|
this.storeValue = opts.value; |
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.date_trigger", |
|
|
|
|
min: this.constants.DATE_MIN_VALUE, |
|
|
|
|
max: this.constants.DATE_MAX_VALUE |
|
|
|
|
max: this.constants.DATE_MAX_VALUE, |
|
|
|
|
value: opts.value |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.DateTrigger.EVENT_KEY_DOWN, function () { |
|
|
|
|
if (self.combo.isViewVisible()) { |
|
|
|
@ -83335,7 +83340,8 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
|
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.multidate_popup", |
|
|
|
|
min: this.constants.DATE_MIN_VALUE, |
|
|
|
|
max: this.constants.DATE_MAX_VALUE |
|
|
|
|
max: this.constants.DATE_MAX_VALUE, |
|
|
|
|
value: opts.value |
|
|
|
|
}); |
|
|
|
|
this.popup.on(BI.MultiDatePopup.BUTTON_CLEAR_EVENT_CHANGE, function () { |
|
|
|
|
self.setValue(); |
|
|
|
@ -83429,6 +83435,8 @@ BI.MultiDateCombo = BI.inherit(BI.Single, {
|
|
|
|
|
self.comboWrapper = _ref; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this._checkDynamicValue(opts.value); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkDynamicValue: function (v) { |
|
|
|
@ -83826,6 +83834,7 @@ BI.MultiDatePopup = BI.inherit(BI.Widget, {
|
|
|
|
|
height: 30 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
this.setValue(opts.value); |
|
|
|
|
}, |
|
|
|
|
_setInnerValue: function (obj) { |
|
|
|
|
if (this.dateTab.getSelect() === BI.MultiDateCombo.MULTI_DATE_YMD_CARD) { |
|
|
|
@ -89598,6 +89607,8 @@ BI.NumberInterval = BI.inherit(BI.Single, {
|
|
|
|
|
self._setComboValueChangedEvent(self.smallCombo); |
|
|
|
|
self._setEditorValueChangedEvent(self.bigEditor); |
|
|
|
|
self._setEditorValueChangedEvent(self.smallEditor); |
|
|
|
|
|
|
|
|
|
this.setValue(o.value); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_checkValidation: function () { |
|
|
|
@ -91090,7 +91101,8 @@ BI.QuarterCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
this.storeValue = ""; |
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.quarter_trigger" |
|
|
|
|
type: "bi.quarter_trigger", |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.trigger.on(BI.QuarterTrigger.EVENT_FOCUS, function () { |
|
|
|
@ -91117,7 +91129,8 @@ BI.QuarterCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
}); |
|
|
|
|
this.popup = BI.createWidget({ |
|
|
|
|
type: "bi.quarter_popup", |
|
|
|
|
behaviors: o.behaviors |
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.popup.on(BI.QuarterPopup.EVENT_CHANGE, function () { |
|
|
|
@ -91175,7 +91188,7 @@ BI.QuarterPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
var items = [{ |
|
|
|
|
text: Date._QN[01], |
|
|
|
|
text: Date._QN[1], |
|
|
|
|
value: 1 |
|
|
|
|
}, { |
|
|
|
|
text: Date._QN[2], |
|
|
|
@ -91206,7 +91219,8 @@ BI.QuarterPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
items: BI.createItems(items, {}), |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical" |
|
|
|
|
}] |
|
|
|
|
}], |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.quarter.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
@ -91313,6 +91327,7 @@ BI.QuarterTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}); |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
@ -97044,11 +97059,12 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
|
var self = this; |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
BI.TimeInterval.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
|
|
this.left = this._createCombo(); |
|
|
|
|
this.right = this._createCombo(); |
|
|
|
|
o.value = o.value || {}; |
|
|
|
|
this.left = this._createCombo(o.value.start); |
|
|
|
|
this.right = this._createCombo(o.value.end); |
|
|
|
|
this.label = BI.createWidget({ |
|
|
|
|
type: "bi.label", |
|
|
|
|
height: this.constants.height, |
|
|
|
@ -97089,10 +97105,11 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createCombo: function () { |
|
|
|
|
_createCombo: function (v) { |
|
|
|
|
var self = this; |
|
|
|
|
var combo = BI.createWidget({ |
|
|
|
|
type: "bi.multidate_combo" |
|
|
|
|
type: "bi.multidate_combo", |
|
|
|
|
value: v |
|
|
|
|
}); |
|
|
|
|
combo.on(BI.MultiDateCombo.EVENT_ERROR, function () { |
|
|
|
|
self._clearTitle(); |
|
|
|
@ -97236,7 +97253,8 @@ BI.YearCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
|
type: "bi.year_trigger", |
|
|
|
|
min: o.min, |
|
|
|
|
max: o.max |
|
|
|
|
max: o.max, |
|
|
|
|
value: o.value || "" |
|
|
|
|
}); |
|
|
|
|
this.trigger.on(BI.YearTrigger.EVENT_FOCUS, function () { |
|
|
|
|
self.storeValue = this.getKey(); |
|
|
|
@ -97288,7 +97306,8 @@ BI.YearCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
behaviors: o.behaviors, |
|
|
|
|
min: o.min, |
|
|
|
|
max: o.max |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
value: o.value || "" |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
this.combo.on(BI.Combo.EVENT_BEFORE_POPUPVIEW, function () { |
|
|
|
@ -97351,7 +97370,7 @@ BI.YearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.YearPopup.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this; |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
this.selectedYear = this._year = Date.getDate().getFullYear(); |
|
|
|
|
|
|
|
|
@ -97398,6 +97417,10 @@ BI.YearPopup = BI.inherit(BI.Widget, {
|
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
self.fireEvent(BI.YearPopup.EVENT_CHANGE, self.selectedYear); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
if(BI.isKey(o.value)){ |
|
|
|
|
this.setValue(o.value); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
@ -97458,7 +97481,8 @@ BI.YearTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
hgap: c.hgap, |
|
|
|
|
vgap: c.vgap, |
|
|
|
|
allowBlank: true, |
|
|
|
|
errorText: c.errorText |
|
|
|
|
errorText: c.errorText, |
|
|
|
|
value: o.value |
|
|
|
|
}); |
|
|
|
|
this.editor.on(BI.SignEditor.EVENT_FOCUS, function () { |
|
|
|
|
self.fireEvent(BI.YearTrigger.EVENT_FOCUS); |
|
|
|
@ -97542,14 +97566,18 @@ BI.YearMonthCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.YearMonthCombo.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
o.value = o.value || {}; |
|
|
|
|
|
|
|
|
|
this.year = BI.createWidget({ |
|
|
|
|
type: "bi.year_combo", |
|
|
|
|
behaviors: o.yearBehaviors |
|
|
|
|
behaviors: o.yearBehaviors, |
|
|
|
|
value: o.value.year |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.month = BI.createWidget({ |
|
|
|
|
type: "bi.month_combo", |
|
|
|
|
behaviors: o.monthBehaviors |
|
|
|
|
behaviors: o.monthBehaviors, |
|
|
|
|
value: o.value.month |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.year.on(BI.YearCombo.EVENT_CONFIRM, function () { |
|
|
|
@ -97609,14 +97637,18 @@ BI.YearQuarterCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
BI.YearQuarterCombo.superclass._init.apply(this, arguments); |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
o.value = o.value || {}; |
|
|
|
|
|
|
|
|
|
this.year = BI.createWidget({ |
|
|
|
|
type: "bi.year_combo", |
|
|
|
|
behaviors: o.yearBehaviors |
|
|
|
|
behaviors: o.yearBehaviors, |
|
|
|
|
value: o.value.year |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.quarter = BI.createWidget({ |
|
|
|
|
type: "bi.quarter_combo", |
|
|
|
|
behaviors: o.quarterBehaviors |
|
|
|
|
behaviors: o.quarterBehaviors, |
|
|
|
|
value: o.value.quarter |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.year.on(BI.YearCombo.EVENT_CONFIRM, function () { |
|
|
|
|