|
|
@ -1,4 +1,4 @@ |
|
|
|
/*! time: 2020-11-13 18:30:22 */ |
|
|
|
/*! time: 2020-11-16 12:50:27 */ |
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ (function(modules) { // webpackBootstrap
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {}; |
|
|
|
/******/ var installedModules = {}; |
|
|
@ -14969,23 +14969,23 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
oldEndVnode = oldCh[--oldEndIdx]; |
|
|
|
oldEndVnode = oldCh[--oldEndIdx]; |
|
|
|
} else if (sameVnode(oldStartVnode, newStartVnode, oldStartIdx, newStartIdx)) { |
|
|
|
} else if (sameVnode(oldStartVnode, newStartVnode, oldStartIdx, newStartIdx)) { |
|
|
|
updated = this.patchItem(oldStartVnode, newStartVnode, oldStartIdx) || updated; |
|
|
|
updated = this.patchItem(oldStartVnode, newStartVnode, oldStartIdx) || updated; |
|
|
|
children[oldStartVnode.key == null ? this._getChildName(oldStartIdx) : oldStartVnode.key] = this._children[this._getChildName(oldStartIdx)]; |
|
|
|
children[oldStartVnode.key == null ? oldStartIdx : oldStartVnode.key] = this._children[this._getChildName(oldStartIdx)]; |
|
|
|
oldStartVnode = oldCh[++oldStartIdx]; |
|
|
|
oldStartVnode = oldCh[++oldStartIdx]; |
|
|
|
newStartVnode = newCh[++newStartIdx]; |
|
|
|
newStartVnode = newCh[++newStartIdx]; |
|
|
|
} else if (sameVnode(oldEndVnode, newEndVnode, oldEndIdx, newEndIdx)) { |
|
|
|
} else if (sameVnode(oldEndVnode, newEndVnode, oldEndIdx, newEndIdx)) { |
|
|
|
updated = this.patchItem(oldEndVnode, newEndVnode, oldEndIdx) || updated; |
|
|
|
updated = this.patchItem(oldEndVnode, newEndVnode, oldEndIdx) || updated; |
|
|
|
children[oldEndVnode.key == null ? this._getChildName(oldEndIdx) : oldEndVnode.key] = this._children[this._getChildName(oldEndIdx)]; |
|
|
|
children[oldEndVnode.key == null ? oldEndIdx : oldEndVnode.key] = this._children[this._getChildName(oldEndIdx)]; |
|
|
|
oldEndVnode = oldCh[--oldEndIdx]; |
|
|
|
oldEndVnode = oldCh[--oldEndIdx]; |
|
|
|
newEndVnode = newCh[--newEndIdx]; |
|
|
|
newEndVnode = newCh[--newEndIdx]; |
|
|
|
} else if (sameVnode(oldStartVnode, newEndVnode)) { |
|
|
|
} else if (sameVnode(oldStartVnode, newEndVnode)) { |
|
|
|
updated = this.patchItem(oldStartVnode, newEndVnode, oldStartIdx) || updated; |
|
|
|
updated = this.patchItem(oldStartVnode, newEndVnode, oldStartIdx) || updated; |
|
|
|
children[oldStartVnode.key == null ? this._getChildName(oldStartIdx) : oldStartVnode.key] = this._children[this._getChildName(oldStartIdx)]; |
|
|
|
children[oldStartVnode.key == null ? oldStartIdx : oldStartVnode.key] = this._children[this._getChildName(oldStartIdx)]; |
|
|
|
insertBefore(oldStartVnode, oldEndVnode, true); |
|
|
|
insertBefore(oldStartVnode, oldEndVnode, true); |
|
|
|
oldStartVnode = oldCh[++oldStartIdx]; |
|
|
|
oldStartVnode = oldCh[++oldStartIdx]; |
|
|
|
newEndVnode = newCh[--newEndIdx]; |
|
|
|
newEndVnode = newCh[--newEndIdx]; |
|
|
|
} else if (sameVnode(oldEndVnode, newStartVnode)) { |
|
|
|
} else if (sameVnode(oldEndVnode, newStartVnode)) { |
|
|
|
updated = this.patchItem(oldEndVnode, newStartVnode, oldEndIdx) || updated; |
|
|
|
updated = this.patchItem(oldEndVnode, newStartVnode, oldEndIdx) || updated; |
|
|
|
children[oldEndVnode.key == null ? this._getChildName(oldEndIdx) : oldEndVnode.key] = this._children[this._getChildName(oldEndIdx)]; |
|
|
|
children[oldEndVnode.key == null ? oldEndIdx : oldEndVnode.key] = this._children[this._getChildName(oldEndIdx)]; |
|
|
|
insertBefore(oldEndVnode, oldStartVnode); |
|
|
|
insertBefore(oldEndVnode, oldStartVnode); |
|
|
|
oldEndVnode = oldCh[--oldEndIdx]; |
|
|
|
oldEndVnode = oldCh[--oldEndIdx]; |
|
|
|
newStartVnode = newCh[++newStartIdx]; |
|
|
|
newStartVnode = newCh[++newStartIdx]; |
|
|
@ -14999,7 +14999,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
BI.each(oldCh, function (index, child) { |
|
|
|
BI.each(oldCh, function (index, child) { |
|
|
|
if (child && sameVnode(child, newStartVnode)) { |
|
|
|
if (child && sameVnode(child, newStartVnode)) { |
|
|
|
updated = self.patchItem(sameOldVnode, newStartVnode, index) || updated; |
|
|
|
updated = self.patchItem(sameOldVnode, newStartVnode, index) || updated; |
|
|
|
children[sameOldVnode.key == null ? self._getChildName(index) : sameOldVnode.key] = self._children[self._getChildName(index)]; |
|
|
|
children[sameOldVnode.key == null ? index : sameOldVnode.key] = self._children[self._getChildName(index)]; |
|
|
|
oldCh[index] = undefined; |
|
|
|
oldCh[index] = undefined; |
|
|
|
insertBefore(sameOldVnode, oldStartVnode); |
|
|
|
insertBefore(sameOldVnode, oldStartVnode); |
|
|
|
} |
|
|
|
} |
|
|
@ -15018,7 +15018,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
this._children = {}; |
|
|
|
this._children = {}; |
|
|
|
BI.each(newCh, function (i, child) { |
|
|
|
BI.each(newCh, function (i, child) { |
|
|
|
var node = self._getOptions(child); |
|
|
|
var node = self._getOptions(child); |
|
|
|
var key = node.key == null ? self._getChildName(i) : node.key; |
|
|
|
var key = node.key == null ? i : node.key; |
|
|
|
children[key]._mount(); |
|
|
|
children[key]._mount(); |
|
|
|
self._children[self._getChildName(i)] = children[key]; |
|
|
|
self._children[self._getChildName(i)] = children[key]; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -15036,7 +15036,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
function addNode (vnode, index) { |
|
|
|
function addNode (vnode, index) { |
|
|
|
var opt = self._getOptions(vnode); |
|
|
|
var opt = self._getOptions(vnode); |
|
|
|
var key = opt.key == null ? self._getChildName(index) : opt.key; |
|
|
|
var key = opt.key == null ? index : opt.key; |
|
|
|
return children[key] = self._addElement(key, vnode); |
|
|
|
return children[key] = self._addElement(key, vnode); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -15052,7 +15052,7 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
var ch = vnodes[startIdx]; |
|
|
|
var ch = vnodes[startIdx]; |
|
|
|
if (BI.isNotNull(ch)) { |
|
|
|
if (BI.isNotNull(ch)) { |
|
|
|
var node = self._getOptions(ch); |
|
|
|
var node = self._getOptions(ch); |
|
|
|
var key = node.key == null ? self._getChildName(startIdx) : node.key; |
|
|
|
var key = node.key == null ? startIdx : node.key; |
|
|
|
delete self._children[self._getChildName(key)]; |
|
|
|
delete self._children[self._getChildName(key)]; |
|
|
|
children[key]._destroy(); |
|
|
|
children[key]._destroy(); |
|
|
|
} |
|
|
|
} |
|
|
@ -15062,9 +15062,9 @@ BI.Layout = BI.inherit(BI.Widget, { |
|
|
|
function insertBefore (insert, before, isNext, index) { |
|
|
|
function insertBefore (insert, before, isNext, index) { |
|
|
|
insert = self._getOptions(insert); |
|
|
|
insert = self._getOptions(insert); |
|
|
|
before = before && self._getOptions(before); |
|
|
|
before = before && self._getOptions(before); |
|
|
|
var insertKey = BI.isKey(insert.key) ? insert.key : self._getChildName(index); |
|
|
|
var insertKey = BI.isKey(insert.key) ? insert.key : index; |
|
|
|
if (before && children[before.key]) { |
|
|
|
if (before && children[before.key]) { |
|
|
|
var beforeKey = BI.isKey(before.key) ? before.key : self._getChildName(index); |
|
|
|
var beforeKey = BI.isKey(before.key) ? before.key : index; |
|
|
|
var next; |
|
|
|
var next; |
|
|
|
if (isNext) { |
|
|
|
if (isNext) { |
|
|
|
next = children[beforeKey].element.next(); |
|
|
|
next = children[beforeKey].element.next(); |
|
|
@ -26902,13 +26902,13 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
return BI.extend({ |
|
|
|
return BI.extend({ |
|
|
|
type: o.logic.dynamic ? "bi.vertical" : "bi.vtape", |
|
|
|
type: o.logic.dynamic ? "bi.vertical" : "bi.vtape", |
|
|
|
items: items, |
|
|
|
items: items, |
|
|
|
width: size.width, |
|
|
|
width: this._getSuitableWidth(size.width), |
|
|
|
}, o.logic.dynamic ? { |
|
|
|
}, o.logic.dynamic ? { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
scrolly: false, |
|
|
|
scrolly: false, |
|
|
|
} : { |
|
|
|
} : { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
height: BI.clamp(size.height, 0, BI.Widget._renderEngine.createElement("body")[0].clientHeight), |
|
|
|
height: this._getSuitableHeight(size.height), |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -26928,6 +26928,14 @@ BI.Popover = BI.inherit(BI.Widget, { |
|
|
|
return BI.clamp(height, 0, BI.Widget._renderEngine.createElement("body")[0].clientHeight - o.headerHeight - (o.footer ? o.footerHeight : 0) - c.BODY_TGAP); |
|
|
|
return BI.clamp(height, 0, BI.Widget._renderEngine.createElement("body")[0].clientHeight - o.headerHeight - (o.footer ? o.footerHeight : 0) - c.BODY_TGAP); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getSuitableHeight: function (height) { |
|
|
|
|
|
|
|
return BI.clamp(height, 0, BI.Widget._renderEngine.createElement("body")[0].clientHeight); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_getSuitableWidth: function (width) { |
|
|
|
|
|
|
|
return BI.clamp(width, 0, BI.Widget._renderEngine.createElement("body").width()); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_calculateSize: function () { |
|
|
|
_calculateSize: function () { |
|
|
|
var o = this.options; |
|
|
|
var o = this.options; |
|
|
|
var size = {}; |
|
|
|
var size = {}; |
|
|
|