|
|
|
@ -51337,8 +51337,11 @@ 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, |
|
|
|
@ -53400,7 +53403,8 @@ BI.IconTextItem = BI.inherit(BI.BasicButton, {
|
|
|
|
|
BI.createWidget(BI.extend({ |
|
|
|
|
element: this |
|
|
|
|
}, BI.LogicFactory.createLogic(BI.LogicFactory.createLogicTypeByDirection(o.direction), BI.extend(o.logic, { |
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.icon, this.text) |
|
|
|
|
items: BI.LogicFactory.createLogicItemsByDirection(o.direction, this.icon, this.text), |
|
|
|
|
lgap: 5 |
|
|
|
|
})))); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
@ -76316,6 +76320,7 @@ BI.ColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
element: this, |
|
|
|
|
container: o.container, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
isNeedAdjustWidth: false, |
|
|
|
|
isNeedAdjustHeight: false, |
|
|
|
@ -76691,6 +76696,7 @@ BI.SimpleColorChooser = BI.inherit(BI.Widget, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.color_chooser", |
|
|
|
|
element: this, |
|
|
|
|
container: o.container, |
|
|
|
|
value: o.value, |
|
|
|
|
popup: { |
|
|
|
|
type: "bi.simple_color_chooser_popup" |
|
|
|
@ -77886,6 +77892,7 @@ BI.BubbleCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
element: this, |
|
|
|
|
trigger: o.trigger, |
|
|
|
|
toggle: o.toggle, |
|
|
|
|
container: o.container, |
|
|
|
|
direction: o.direction, |
|
|
|
|
isDefaultInit: o.isDefaultInit, |
|
|
|
|
destroyWhenHide: o.destroyWhenHide, |
|
|
|
@ -78641,6 +78648,7 @@ BI.IconTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
this.textIconCombo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
element: this, |
|
|
|
|
container: o.container, |
|
|
|
|
adjustLength: 2, |
|
|
|
|
el: this.trigger, |
|
|
|
|
popup: { |
|
|
|
@ -78770,6 +78778,7 @@ BI.SearchTextValueCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.combo", |
|
|
|
|
container: o.container, |
|
|
|
|
adjustLength: 2, |
|
|
|
|
toggle: false, |
|
|
|
|
ref: function () { |
|
|
|
@ -78830,7 +78839,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, |
|
|
|
@ -79120,6 +79129,7 @@ BI.StaticCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
type: "bi.combo", |
|
|
|
|
element: this, |
|
|
|
|
adjustLength: 2, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
popup: { |
|
|
|
|
el: this.popup |
|
|
|
@ -79477,6 +79487,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: { |
|
|
|
@ -83487,7 +83498,7 @@ BI.shortcut("bi.rich_editor_text_toolbar", BI.RichEditorTextToolbar);/**
|
|
|
|
|
var self = this; |
|
|
|
|
var found = false; |
|
|
|
|
do { |
|
|
|
|
if (t.nodeName !== "svg" && t.className && t.className.indexOf(prefix) != -1) { |
|
|
|
|
if (t.nodeName !== "svg" && t.className && t.className.indexOf && t.className.indexOf(prefix) != -1) { |
|
|
|
|
return; |
|
|
|
|
// return false;
|
|
|
|
|
} |
|
|
|
@ -89113,23 +89124,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 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
@ -97355,6 +97359,7 @@ BI.MultiSelectCombo = BI.inherit(BI.Single, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
popup: { |
|
|
|
@ -97396,7 +97401,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)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -97656,6 +97661,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
text: o.text, |
|
|
|
|
// adapter: this.popup,
|
|
|
|
|
masker: { |
|
|
|
|
container: "body", |
|
|
|
|
offset: { |
|
|
|
|
left: 0, |
|
|
|
|
top: 0, |
|
|
|
@ -97737,6 +97743,7 @@ BI.MultiSelectInsertCombo = BI.inherit(BI.Single, {
|
|
|
|
|
toggle: false, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
container: o.container, |
|
|
|
|
popup: { |
|
|
|
|
type: "bi.multi_select_popup_view", |
|
|
|
|
ref: function () { |
|
|
|
@ -97776,7 +97783,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)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -98119,6 +98127,7 @@ BI.MultiSelectInsertNoBarCombo = BI.inherit(BI.Single, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
popup: { |
|
|
|
@ -98163,7 +98172,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)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -101609,6 +101618,7 @@ BI.MultiTreeCombo = BI.inherit(BI.Single, {
|
|
|
|
|
valueFormatter: o.valueFormatter, |
|
|
|
|
// adapter: this.popup,
|
|
|
|
|
masker: { |
|
|
|
|
container: "body", |
|
|
|
|
offset: this.constants.offset |
|
|
|
|
}, |
|
|
|
|
searcher: { |
|
|
|
@ -101682,7 +101692,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)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -104284,6 +104294,7 @@ BI.SearchMultiTextValueCombo = BI.inherit(BI.Single, {
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
|
type: "bi.combo", |
|
|
|
|
toggle: false, |
|
|
|
|
container: o.container, |
|
|
|
|
el: this.trigger, |
|
|
|
|
adjustLength: 1, |
|
|
|
|
popup: { |
|
|
|
@ -104325,7 +104336,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)); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -106641,7 +106652,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 |
|
|
|
|
}); |
|
|
|
@ -106910,7 +106921,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 |
|
|
|
|
}); |
|
|
|
@ -111405,9 +111416,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) { |
|
|
|
@ -112341,9 +112366,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) { |
|
|
|
|