|
|
|
@ -40934,7 +40934,7 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
this.view = this._createView(); |
|
|
|
|
this.toolbar = this._createToolBar(); |
|
|
|
|
|
|
|
|
|
this.button_group.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
this.view.on(BI.Controller.EVENT_CHANGE, function (type) { |
|
|
|
|
self.fireEvent(BI.Controller.EVENT_CHANGE, arguments); |
|
|
|
|
if (type === BI.Events.CLICK) { |
|
|
|
|
self.fireEvent(BI.PopupView.EVENT_CHANGE); |
|
|
|
@ -41009,11 +41009,11 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getView: function () { |
|
|
|
|
return this.button_group; |
|
|
|
|
return this.view; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
populate: function (items) { |
|
|
|
|
this.button_group.populate.apply(this.button_group, arguments); |
|
|
|
|
this.view.populate.apply(this.view, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
resetWidth: function (w) { |
|
|
|
@ -41032,11 +41032,11 @@ BI.PopupView = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
setValue: function (selectedValues) { |
|
|
|
|
this.tab && this.tab.setValue(selectedValues); |
|
|
|
|
this.button_group.setValue(selectedValues); |
|
|
|
|
this.view.setValue(selectedValues); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getValue: function () { |
|
|
|
|
return this.button_group.getValue(); |
|
|
|
|
return this.view.getValue(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.PopupView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
@ -52344,22 +52344,18 @@ BI.BubbleCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
case "left,top": |
|
|
|
|
case "left,bottom": |
|
|
|
|
this._createLeftTriangle(); |
|
|
|
|
//this.combo.getView().showLine("right");
|
|
|
|
|
break; |
|
|
|
|
case "right,top": |
|
|
|
|
case "right,bottom": |
|
|
|
|
this._createRightTriangle(); |
|
|
|
|
//this.combo.getView().showLine("left");
|
|
|
|
|
break; |
|
|
|
|
case "top,left": |
|
|
|
|
case "top,right": |
|
|
|
|
this._createTopTriangle(); |
|
|
|
|
//this.combo.getView().showLine("bottom");
|
|
|
|
|
break; |
|
|
|
|
case "bottom,left": |
|
|
|
|
case "bottom,right": |
|
|
|
|
this._createBottomTriangle(); |
|
|
|
|
//this.combo.getView().showLine("top");
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -52367,7 +52363,6 @@ BI.BubbleCombo = BI.inherit(BI.Widget, {
|
|
|
|
|
_hideTriangle: function () { |
|
|
|
|
this.triangle && this.triangle.destroy(); |
|
|
|
|
this.triangle = null; |
|
|
|
|
//this.combo.getView() && this.combo.getView().hideLine();
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
hideView: function () { |
|
|
|
@ -52405,65 +52400,14 @@ BI.BubblePopupView = BI.inherit(BI.PopupView, {
|
|
|
|
|
_defaultConfig: function () { |
|
|
|
|
var config = BI.BubblePopupView.superclass._defaultConfig.apply(this, arguments); |
|
|
|
|
return BI.extend(config, { |
|
|
|
|
baseCls: config.baseCls + " bi-bubble-popup-view" |
|
|
|
|
baseCls: config.baseCls + " bi-bubble-popup-view", |
|
|
|
|
minWidth: 220, |
|
|
|
|
maxWidth: 300, |
|
|
|
|
minHeight: 90 |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
_init: function () { |
|
|
|
|
BI.BubblePopupView.superclass._init.apply(this, arguments); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
showLine: function (direction) { |
|
|
|
|
var pos = {}, op = {}; |
|
|
|
|
switch (direction) { |
|
|
|
|
case "left": |
|
|
|
|
pos = { |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0, |
|
|
|
|
left: -1 |
|
|
|
|
}; |
|
|
|
|
op = {width: 3}; |
|
|
|
|
break; |
|
|
|
|
case "right": |
|
|
|
|
pos = { |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0, |
|
|
|
|
right: -1 |
|
|
|
|
}; |
|
|
|
|
op = {width: 3}; |
|
|
|
|
break; |
|
|
|
|
case "top": |
|
|
|
|
pos = { |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
top: -1 |
|
|
|
|
}; |
|
|
|
|
op = {height: 3}; |
|
|
|
|
break; |
|
|
|
|
case "bottom": |
|
|
|
|
pos = { |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
bottom: -1 |
|
|
|
|
}; |
|
|
|
|
op = {height: 3}; |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
this.line = BI.createWidget(op, { |
|
|
|
|
type: "bi.layout", |
|
|
|
|
cls: "bubble-popup-line bi-high-light-background" |
|
|
|
|
}); |
|
|
|
|
pos.el = this.line; |
|
|
|
|
BI.createWidget({ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
element: this, |
|
|
|
|
items: [pos] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
hideLine: function () { |
|
|
|
|
this.line && this.line.destroy(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -52498,7 +52442,7 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
|
|
|
|
|
} else { |
|
|
|
|
items.push(BI.extend({ |
|
|
|
|
type: "bi.button", |
|
|
|
|
height: 30, |
|
|
|
|
height: 24, |
|
|
|
|
handler: function (v) { |
|
|
|
|
self.fireEvent(BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON, v); |
|
|
|
|
} |
|
|
|
@ -52506,12 +52450,33 @@ BI.BubblePopupBarView = BI.inherit(BI.BubblePopupView, {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
return BI.createWidget({ |
|
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
height: 44, |
|
|
|
|
hgap: 10, |
|
|
|
|
bgap: 10, |
|
|
|
|
items: items |
|
|
|
|
type: "bi.default", |
|
|
|
|
rgap: 15, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.right_vertical_adapt", |
|
|
|
|
height: 44, |
|
|
|
|
lgap: 10, |
|
|
|
|
items: items |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_createView: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
|
|
|
|
|
var button = BI.createWidget({ |
|
|
|
|
type: "bi.button_group", |
|
|
|
|
items: [o.el], |
|
|
|
|
layouts: [{ |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
hgap: 15, |
|
|
|
|
tgap: 10 |
|
|
|
|
}] |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
button.element.css("min-height", o.minHeight - 44); |
|
|
|
|
|
|
|
|
|
return button; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.BubblePopupBarView.EVENT_CLICK_TOOLBAR_BUTTON = "EVENT_CLICK_TOOLBAR_BUTTON"; |
|
|
|
@ -52529,7 +52494,6 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
return { |
|
|
|
|
baseCls: "bi-text-bubble-bar-popup-view", |
|
|
|
|
text: "", |
|
|
|
|
width: 250, |
|
|
|
|
buttons: [{ |
|
|
|
|
level: "ignore", |
|
|
|
|
value: false, |
|
|
|
@ -52562,19 +52526,13 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
self.popup = this; |
|
|
|
|
}, |
|
|
|
|
el: { |
|
|
|
|
type: "bi.vertical", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.label", |
|
|
|
|
text: o.text, |
|
|
|
|
whiteSpace: "normal", |
|
|
|
|
textAlign: "left", |
|
|
|
|
ref: function () { |
|
|
|
|
self.text = this; |
|
|
|
|
} |
|
|
|
|
}], |
|
|
|
|
hgap: 10, |
|
|
|
|
tgap: 25, |
|
|
|
|
bgap: 10 |
|
|
|
|
type: "bi.label", |
|
|
|
|
text: o.text, |
|
|
|
|
whiteSpace: "normal", |
|
|
|
|
textAlign: "left", |
|
|
|
|
ref: function () { |
|
|
|
|
self.text = this; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
buttons: buttons |
|
|
|
|
}; |
|
|
|
@ -52582,14 +52540,6 @@ BI.TextBubblePopupBarView = BI.inherit(BI.Widget, {
|
|
|
|
|
|
|
|
|
|
populate: function (v) { |
|
|
|
|
this.text.setText(v || this.options.text); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
showLine: function (direction) { |
|
|
|
|
this.popup.showLine(direction); |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
hideLine: function () { |
|
|
|
|
this.popup.hideLine(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
BI.TextBubblePopupBarView.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
@ -77488,7 +77438,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
height: 24, |
|
|
|
|
width: 24, |
|
|
|
|
lgap: 15, |
|
|
|
|
offset: -15, |
|
|
|
|
offset: 0, |
|
|
|
|
timeErrorCls: "time-error", |
|
|
|
|
DATE_MIN_VALUE: "1900-01-01", |
|
|
|
|
DATE_MAX_VALUE: "2099-12-31" |
|
|
|
@ -77515,14 +77465,13 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
element: self, |
|
|
|
|
type: "bi.center", |
|
|
|
|
hgap: 10, |
|
|
|
|
height: this.constants.height, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: self.left, |
|
|
|
|
left: this.constants.offset, |
|
|
|
|
right: 0, |
|
|
|
|
right: this.constants.width / 2, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
@ -77530,7 +77479,7 @@ BI.DateInterval = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: self.right, |
|
|
|
|
left: 0, |
|
|
|
|
left: this.constants.width / 2, |
|
|
|
|
right: this.constants.offset, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
@ -77668,7 +77617,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
height: 24, |
|
|
|
|
width: 24, |
|
|
|
|
lgap: 15, |
|
|
|
|
offset: -15, |
|
|
|
|
offset: 0, |
|
|
|
|
timeErrorCls: "time-error", |
|
|
|
|
DATE_MIN_VALUE: "1900-01-01", |
|
|
|
|
DATE_MAX_VALUE: "2099-12-31" |
|
|
|
@ -77695,14 +77644,13 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
BI.createWidget({ |
|
|
|
|
element: self, |
|
|
|
|
type: "bi.center", |
|
|
|
|
hgap: 10, |
|
|
|
|
height: this.constants.height, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: self.left, |
|
|
|
|
left: this.constants.offset, |
|
|
|
|
right: 0, |
|
|
|
|
right: this.constants.width / 2, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
}] |
|
|
|
@ -77710,7 +77658,7 @@ BI.TimeInterval = BI.inherit(BI.Single, {
|
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: self.right, |
|
|
|
|
left: 0, |
|
|
|
|
left: this.constants.width / 2, |
|
|
|
|
right: this.constants.offset, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|