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