|
|
@ -51337,11 +51337,13 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.absolute", |
|
|
|
type: "bi.absolute", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header) : { |
|
|
|
el: BI.isPlainObject(o.header) ? BI.createWidget(o.header, { |
|
|
|
|
|
|
|
extraCls: "bi-font-bold" |
|
|
|
|
|
|
|
}) : { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
|
|
|
|
cls: "bi-font-bold", |
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
height: this._constant.HEADER_HEIGHT, |
|
|
|
text: o.header, |
|
|
|
text: o.header, |
|
|
|
title: o.header, |
|
|
|
|
|
|
|
textAlign: "left" |
|
|
|
textAlign: "left" |
|
|
|
}, |
|
|
|
}, |
|
|
|
left: 10, |
|
|
|
left: 10, |
|
|
@ -78311,6 +78313,7 @@ BI.EditorIconCheckCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.editorIconCheckCombo = BI.createWidget({ |
|
|
|
this.editorIconCheckCombo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -78835,7 +78838,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}], |
|
|
|
}], |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return self.triggerBtn.element.find(e.target).length === 0; |
|
|
|
return self.triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
@ -79189,6 +79192,7 @@ BI.TextValueCheckCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.textIconCheckCombo = BI.createWidget({ |
|
|
|
this.textIconCheckCombo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -79268,6 +79272,7 @@ BI.SmallTextValueCheckCombo = BI.inherit(BI.Widget, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.SmallTextIconCheckCombo = BI.createWidget({ |
|
|
|
this.SmallTextIconCheckCombo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -79483,6 +79488,7 @@ BI.SmallTextValueCombo = BI.inherit(BI.Widget, { |
|
|
|
this.SmallTextValueCombo = BI.createWidget({ |
|
|
|
this.SmallTextValueCombo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
@ -84431,6 +84437,7 @@ BI.shortcut("bi.rich_editor_color_chooser", BI.RichEditorColorChooser);BI.RichEd |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
@ -84585,6 +84592,7 @@ BI.RichEditorSizeChooser = BI.inherit(BI.RichEditorAction, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
@ -84692,6 +84700,7 @@ BI.RichEditor = BI.inherit(BI.Widget, { |
|
|
|
this.editor = BI.createWidget(editor); |
|
|
|
this.editor = BI.createWidget(editor); |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
toggle: false, |
|
|
|
toggle: false, |
|
|
|
trigger: "click", |
|
|
|
trigger: "click", |
|
|
|
direction: "top,right", |
|
|
|
direction: "top,right", |
|
|
@ -88623,7 +88632,7 @@ BI.MonthDateCombo = BI.inherit(BI.Trigger, { |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
offsetStyle: "center", |
|
|
|
offsetStyle: "center", |
|
|
|
container: null, |
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
@ -88835,6 +88844,7 @@ BI.DatePicker = BI.inherit(BI.Widget, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.horizontal", |
|
|
|
type: "bi.horizontal", |
|
|
|
width: 100, |
|
|
|
width: 100, |
|
|
|
|
|
|
|
rgap: 10, |
|
|
|
items: [this.year, this.month] |
|
|
|
items: [this.year, this.month] |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, { |
|
|
|
}, { |
|
|
@ -89253,23 +89263,16 @@ BI.DateTriangleTrigger = BI.inherit(BI.Trigger, { |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
height: c.height |
|
|
|
height: c.height |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.icon = BI.createWidget({ |
|
|
|
|
|
|
|
type: "bi.icon", |
|
|
|
|
|
|
|
width: c.iconWidth, |
|
|
|
|
|
|
|
height: c.iconHeight |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BI.createWidget({ |
|
|
|
BI.createWidget({ |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.vertical_adapt", |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.center_adapt", |
|
|
|
el: this.text, |
|
|
|
width: 50, |
|
|
|
rgap: 5 |
|
|
|
height: c.height, |
|
|
|
}, { |
|
|
|
items: [{ |
|
|
|
type: "bi.icon_label", |
|
|
|
el: this.text, |
|
|
|
width: 16 |
|
|
|
rgap: 10 |
|
|
|
|
|
|
|
}, this.icon] |
|
|
|
|
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -89656,6 +89659,7 @@ BI.DateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: opts.container, |
|
|
|
toggle: false, |
|
|
|
toggle: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
@ -91470,6 +91474,7 @@ BI.extend(BI.DynamicDateCard, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: opts.container, |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.combo = this; |
|
|
|
self.combo = this; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -92351,6 +92356,7 @@ BI.DynamicDateTimeCombo = BI.inherit(BI.Single, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: opts.container, |
|
|
|
ref: function () { |
|
|
|
ref: function () { |
|
|
|
self.combo = this; |
|
|
|
self.combo = this; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -95183,6 +95189,7 @@ BI.MonthCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
@ -95861,6 +95868,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -96417,6 +96425,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -97537,7 +97546,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -97797,6 +97806,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
text: o.text, |
|
|
|
text: o.text, |
|
|
|
// adapter: this.popup,
|
|
|
|
// adapter: this.popup,
|
|
|
|
masker: { |
|
|
|
masker: { |
|
|
|
|
|
|
|
container: "body", |
|
|
|
offset: { |
|
|
|
offset: { |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|
top: 0, |
|
|
|
top: 0, |
|
|
@ -97918,7 +97928,8 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && |
|
|
|
|
|
|
|
(self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -98306,7 +98317,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, { |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
|
}, |
|
|
|
}, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -101752,6 +101763,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
// adapter: this.popup,
|
|
|
|
// adapter: this.popup,
|
|
|
|
masker: { |
|
|
|
masker: { |
|
|
|
|
|
|
|
container: "body", |
|
|
|
offset: this.constants.offset |
|
|
|
offset: this.constants.offset |
|
|
|
}, |
|
|
|
}, |
|
|
|
searcher: { |
|
|
|
searcher: { |
|
|
@ -101774,6 +101786,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
toggle: false, |
|
|
|
toggle: false, |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
|
popup: { |
|
|
|
popup: { |
|
|
@ -101825,7 +101838,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: {value: o.value || {}}, |
|
|
|
value: {value: o.value || {}}, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -103728,6 +103741,7 @@ BI.QuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
@ -104469,7 +104483,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, { |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: o.value, |
|
|
|
value: o.value, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -105645,6 +105659,7 @@ BI.SelectTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -106755,6 +106770,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
toggle: false, |
|
|
|
toggle: false, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
@ -106785,7 +106801,7 @@ BI.SingleSelectCombo = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
|
}); |
|
|
|
}); |
|
|
@ -107024,6 +107040,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
toggle: false, |
|
|
|
toggle: false, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
|
adjustLength: 1, |
|
|
|
adjustLength: 1, |
|
|
@ -107054,7 +107071,7 @@ BI.SingleSelectInsertCombo = BI.inherit(BI.Single, { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
hideChecker: function (e) { |
|
|
|
hideChecker: function (e) { |
|
|
|
return triggerBtn.element.find(e.target).length === 0; |
|
|
|
return triggerBtn.element.find(e.target).length === 0 && (self.popup && !self.popup.element.__isMouseInBounds__(e)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
value: o.value |
|
|
|
value: o.value |
|
|
|
}); |
|
|
|
}); |
|
|
@ -109369,6 +109386,7 @@ BI.SingleTreeCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
adjustLength: 2, |
|
|
|
adjustLength: 2, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -110276,6 +110294,7 @@ BI.shortcut("bi.static_year_card", BI.StaticYearCard);BI.DynamicYearCombo = BI.i |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -111017,6 +111036,7 @@ BI.DynamicYearMonthCombo = BI.inherit(BI.Single, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -111549,9 +111569,23 @@ BI.shortcut("bi.dynamic_year_month_popup", BI.DynamicYearMonthPopup);BI.DynamicY |
|
|
|
|
|
|
|
|
|
|
|
_getStaticTitle: function (value) { |
|
|
|
_getStaticTitle: function (value) { |
|
|
|
value = value || {}; |
|
|
|
value = value || {}; |
|
|
|
var yearStr = (BI.isNull(value.year) || BI.isEmptyString(value.year)) ? "" : value.year; |
|
|
|
var hasYear = !(BI.isNull(value.year) || BI.isEmptyString(value.year)); |
|
|
|
var monthStr = (BI.isNull(value.month) || BI.isEmptyString(value.month)) ? "" : "-" + value.month; |
|
|
|
var hasMonth = !(BI.isNull(value.month) || BI.isEmptyString(value.month)); |
|
|
|
return yearStr + monthStr; |
|
|
|
switch ((hasYear << 1) | hasMonth) { |
|
|
|
|
|
|
|
// !hasYear && !hasMonth
|
|
|
|
|
|
|
|
case 0: |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
// !hasYear && hasMonth
|
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
|
|
return value.month; |
|
|
|
|
|
|
|
// hasYear && !hasMonth
|
|
|
|
|
|
|
|
case 2: |
|
|
|
|
|
|
|
return value.year; |
|
|
|
|
|
|
|
// hasYear && hasMonth
|
|
|
|
|
|
|
|
case 3: |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
return value.year + "-" + value.month; |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
setValue: function (v) { |
|
|
|
setValue: function (v) { |
|
|
@ -112025,6 +112059,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
container: o.container, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustHeight: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
isNeedAdjustWidth: false, |
|
|
|
el: this.trigger, |
|
|
|
el: this.trigger, |
|
|
@ -112485,9 +112520,23 @@ BI.shortcut("bi.dynamic_year_quarter_popup", BI.DynamicYearQuarterPopup);BI.Dyna |
|
|
|
|
|
|
|
|
|
|
|
_getStaticTitle: function (value) { |
|
|
|
_getStaticTitle: function (value) { |
|
|
|
value = value || {}; |
|
|
|
value = value || {}; |
|
|
|
var yearStr = (BI.isNull(value.year) || BI.isEmptyString(value.year)) ? "" : value.year; |
|
|
|
var hasYear = !(BI.isNull(value.year) || BI.isEmptyString(value.year)); |
|
|
|
var quarterStr = (BI.isNull(value.quarter) || BI.isEmptyString(value.quarter)) ? "" : "-" + value.quarter; |
|
|
|
var hasMonth = !(BI.isNull(value.quarter) || BI.isEmptyString(value.quarter)); |
|
|
|
return yearStr + quarterStr; |
|
|
|
switch ((hasYear << 1) | hasMonth) { |
|
|
|
|
|
|
|
// !hasYear && !hasMonth
|
|
|
|
|
|
|
|
case 0: |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
// !hasYear && hasMonth
|
|
|
|
|
|
|
|
case 1: |
|
|
|
|
|
|
|
return value.quarter; |
|
|
|
|
|
|
|
// hasYear && !hasMonth
|
|
|
|
|
|
|
|
case 2: |
|
|
|
|
|
|
|
return value.year; |
|
|
|
|
|
|
|
// hasYear && hasMonth
|
|
|
|
|
|
|
|
case 3: |
|
|
|
|
|
|
|
default: |
|
|
|
|
|
|
|
return value.year + "-" + value.quarter; |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_getText: function (obj) { |
|
|
|
_getText: function (obj) { |
|
|
|