|
|
|
@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
|
|
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
|
if (attachEvent) { |
|
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
|
BI.defer(fn); |
|
|
|
|
fn(); |
|
|
|
|
} else { |
|
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
|
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
|
|
|
|
|
var left = 0, right = 0, top = 0, bottom = 0; |
|
|
|
|
if (BI.isNotNull(item.left)) { |
|
|
|
|
w.element.css({ |
|
|
|
|
"margin-left": item.left |
|
|
|
|
left: item.left |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(item.right)) { |
|
|
|
|
w.element.css({ |
|
|
|
|
"margin-right": item.right |
|
|
|
|
right: item.right |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(item.top)) { |
|
|
|
|
w.element.css({ |
|
|
|
|
"margin-top": item.top |
|
|
|
|
top: item.top |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(item.bottom)) { |
|
|
|
|
w.element.css({ |
|
|
|
|
"margin-bottom": item.bottom |
|
|
|
|
bottom: item.bottom |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (BI.isNotNull(o.hgap)) { |
|
|
|
|
left += o.hgap; |
|
|
|
|
w.element.css({left: left}); |
|
|
|
|
w.element.css({"margin-left": left}); |
|
|
|
|
right += o.hgap; |
|
|
|
|
w.element.css({right: right}); |
|
|
|
|
w.element.css({"margin-right": right}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(o.vgap)) { |
|
|
|
|
top += o.vgap; |
|
|
|
|
w.element.css({top: top}); |
|
|
|
|
w.element.css({"margin-top": top}); |
|
|
|
|
bottom += o.vgap; |
|
|
|
|
w.element.css({bottom: bottom}); |
|
|
|
|
w.element.css({"margin-bottom": bottom}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (BI.isNotNull(o.lgap)) { |
|
|
|
|
left += o.lgap; |
|
|
|
|
w.element.css({left: left}); |
|
|
|
|
w.element.css({"margin-left": left}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(o.rgap)) { |
|
|
|
|
right += o.rgap; |
|
|
|
|
w.element.css({right: right}); |
|
|
|
|
w.element.css({"margin-right": right}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(o.tgap)) { |
|
|
|
|
top += o.tgap; |
|
|
|
|
w.element.css({top: top}); |
|
|
|
|
w.element.css({"margin-top": top}); |
|
|
|
|
} |
|
|
|
|
if (BI.isNotNull(o.bgap)) { |
|
|
|
|
bottom += o.bgap; |
|
|
|
|
w.element.css({bottom: bottom}); |
|
|
|
|
w.element.css({"margin-bottom": bottom}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (BI.isNotNull(item.width)) { |
|
|
|
@ -82629,7 +82629,6 @@ BI.SingleSlider = BI.inherit(BI.Widget, {
|
|
|
|
|
v = o.digit === false ? v : v.toFixed(o.digit); |
|
|
|
|
self.label.setValue(v); |
|
|
|
|
self.value = v; |
|
|
|
|
self.fireEvent(BI.SingleSlider.EVENT_CHANGE); |
|
|
|
|
} |
|
|
|
|
}, function () { |
|
|
|
|
if (startDrag === true) { |
|
|
|
@ -88828,7 +88827,7 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, {
|
|
|
|
|
}); |
|
|
|
|
BI.ValueChooserPane.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
|
BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
|
function initWatch(vm, watch) { |
|
|
|
|
function initWatch (vm, watch) { |
|
|
|
|
vm._watchers || (vm._watchers = []); |
|
|
|
|
for (var key in watch) { |
|
|
|
|
var handler = watch[key]; |
|
|
|
@ -88842,7 +88841,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function createWatcher(vm, keyOrFn, handler) { |
|
|
|
|
function createWatcher (vm, keyOrFn, handler) { |
|
|
|
|
return Fix.watch(vm.model, keyOrFn, _.bind(handler, vm), { |
|
|
|
|
store: vm.store |
|
|
|
|
}); |
|
|
|
@ -88851,24 +88850,24 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
var target = null; |
|
|
|
|
var targetStack = []; |
|
|
|
|
|
|
|
|
|
function pushTarget(_target) { |
|
|
|
|
function pushTarget (_target) { |
|
|
|
|
if (target) targetStack.push(target); |
|
|
|
|
Fix.Model.target = target = _target; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function popTarget() { |
|
|
|
|
function popTarget () { |
|
|
|
|
Fix.Model.target = target = targetStack.pop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var context = null; |
|
|
|
|
var contextStack = []; |
|
|
|
|
|
|
|
|
|
function pushContext(_context) { |
|
|
|
|
function pushContext (_context) { |
|
|
|
|
if (context) contextStack.push(context); |
|
|
|
|
Fix.Model.context = context = _context; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function popContext() { |
|
|
|
|
function popContext () { |
|
|
|
|
Fix.Model.context = context = contextStack.pop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -88889,7 +88888,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
}, options); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
function findStore(widget) { |
|
|
|
|
function findStore (widget) { |
|
|
|
|
if (target != null) { |
|
|
|
|
return target; |
|
|
|
|
} |
|
|
|
@ -88935,7 +88934,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
function createStore() { |
|
|
|
|
function createStore () { |
|
|
|
|
var needPop = false; |
|
|
|
|
if (_global.Fix && this._store) { |
|
|
|
|
var store = findStore(this.options.context || this.options.element); |
|
|
|
@ -89001,7 +89000,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
var old = BI.Widget.prototype[name]; |
|
|
|
|
old && (BI.Widget.prototype[name] = function () { |
|
|
|
|
this.store && pushTarget(this.store); |
|
|
|
|
var res = old.apply(this, arguments); |
|
|
|
|
try { |
|
|
|
|
var res = old.apply(this, arguments); |
|
|
|
|
} catch (e) { |
|
|
|
|
console.error(e); |
|
|
|
|
} |
|
|
|
|
this.store && popTarget(); |
|
|
|
|
return res; |
|
|
|
|
}); |
|
|
|
@ -89075,7 +89078,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () {
|
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
BI.watch = Fix.watch; |
|
|
|
|
}());(function () { |
|
|
|
|
}()); |
|
|
|
|
(function () { |
|
|
|
|
var Events = { |
|
|
|
|
|
|
|
|
|
// Bind an event to a `callback` function. Passing `"all"` will bind
|
|
|
|
|