|
|
@ -21696,7 +21696,7 @@ BI.prepares.push(function () { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
var addResizeListener = function (element, fn) { |
|
|
|
if (attachEvent) { |
|
|
|
if (attachEvent) { |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
element.attachEvent("onresize", fn); |
|
|
|
BI.defer(fn); |
|
|
|
fn(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (!element.__resizeTriggers__) { |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
|
if (getComputedStyle(element).position === "static") element.style.position = "relative"; |
|
|
@ -88828,7 +88828,7 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, { |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.ValueChooserPane.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.ValueChooserPane.EVENT_CHANGE = "EVENT_CHANGE"; |
|
|
|
BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
function initWatch(vm, watch) { |
|
|
|
function initWatch (vm, watch) { |
|
|
|
vm._watchers || (vm._watchers = []); |
|
|
|
vm._watchers || (vm._watchers = []); |
|
|
|
for (var key in watch) { |
|
|
|
for (var key in watch) { |
|
|
|
var handler = watch[key]; |
|
|
|
var handler = watch[key]; |
|
|
@ -88842,7 +88842,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), { |
|
|
|
return Fix.watch(vm.model, keyOrFn, _.bind(handler, vm), { |
|
|
|
store: vm.store |
|
|
|
store: vm.store |
|
|
|
}); |
|
|
|
}); |
|
|
@ -88851,24 +88851,24 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
var target = null; |
|
|
|
var target = null; |
|
|
|
var targetStack = []; |
|
|
|
var targetStack = []; |
|
|
|
|
|
|
|
|
|
|
|
function pushTarget(_target) { |
|
|
|
function pushTarget (_target) { |
|
|
|
if (target) targetStack.push(target); |
|
|
|
if (target) targetStack.push(target); |
|
|
|
Fix.Model.target = target = _target; |
|
|
|
Fix.Model.target = target = _target; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function popTarget() { |
|
|
|
function popTarget () { |
|
|
|
Fix.Model.target = target = targetStack.pop(); |
|
|
|
Fix.Model.target = target = targetStack.pop(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var context = null; |
|
|
|
var context = null; |
|
|
|
var contextStack = []; |
|
|
|
var contextStack = []; |
|
|
|
|
|
|
|
|
|
|
|
function pushContext(_context) { |
|
|
|
function pushContext (_context) { |
|
|
|
if (context) contextStack.push(context); |
|
|
|
if (context) contextStack.push(context); |
|
|
|
Fix.Model.context = context = _context; |
|
|
|
Fix.Model.context = context = _context; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function popContext() { |
|
|
|
function popContext () { |
|
|
|
Fix.Model.context = context = contextStack.pop(); |
|
|
|
Fix.Model.context = context = contextStack.pop(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -88889,7 +88889,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
}, options); |
|
|
|
}, options); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
function findStore(widget) { |
|
|
|
function findStore (widget) { |
|
|
|
if (target != null) { |
|
|
|
if (target != null) { |
|
|
|
return target; |
|
|
|
return target; |
|
|
|
} |
|
|
|
} |
|
|
@ -88935,7 +88935,7 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
}; |
|
|
|
}; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function createStore() { |
|
|
|
function createStore () { |
|
|
|
var needPop = false; |
|
|
|
var needPop = false; |
|
|
|
if (_global.Fix && this._store) { |
|
|
|
if (_global.Fix && this._store) { |
|
|
|
var store = findStore(this.options.context || this.options.element); |
|
|
|
var store = findStore(this.options.context || this.options.element); |
|
|
@ -89001,7 +89001,11 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
var old = BI.Widget.prototype[name]; |
|
|
|
var old = BI.Widget.prototype[name]; |
|
|
|
old && (BI.Widget.prototype[name] = function () { |
|
|
|
old && (BI.Widget.prototype[name] = function () { |
|
|
|
this.store && pushTarget(this.store); |
|
|
|
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(); |
|
|
|
this.store && popTarget(); |
|
|
|
return res; |
|
|
|
return res; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -89075,7 +89079,8 @@ BI.shortcut("bi.value_chooser_pane", BI.ValueChooserPane);;(function () { |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
BI.watch = Fix.watch; |
|
|
|
BI.watch = Fix.watch; |
|
|
|
}());(function () { |
|
|
|
}()); |
|
|
|
|
|
|
|
(function () { |
|
|
|
var Events = { |
|
|
|
var Events = { |
|
|
|
|
|
|
|
|
|
|
|
// Bind an event to a `callback` function. Passing `"all"` will bind
|
|
|
|
// Bind an event to a `callback` function. Passing `"all"` will bind
|
|
|
|