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